Merge pull request #2447 from element-hq/feature/bma/localazyPostProcessing

Improve Localazy post processing
This commit is contained in:
Benoit Marty
2024-02-26 22:01:55 +01:00
committed by GitHub
14 changed files with 31 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="screen_signout_in_progress_dialog_content">"Loggar ut …"</string>
<string name="screen_signout_in_progress_dialog_content">"Loggar ut …"</string>
</resources>

View File

@@ -14,7 +14,7 @@
<string name="screen_change_account_provider_subtitle">"Utilisez un autre fournisseur de compte, tel que votre propre serveur privé ou un serveur professionnel."</string>
<string name="screen_change_account_provider_title">"Changer de fournisseur de compte"</string>
<string name="screen_change_server_error_invalid_homeserver">"Nous navons pas pu atteindre ce serveur daccueil. Vérifiez que vous avez correctement saisi lURL du serveur daccueil. Si lURL est correcte, contactez ladministrateur de votre serveur daccueil pour obtenir de laide."</string>
<string name="screen_change_server_error_invalid_well_known">"Sliding sync n\'est pas disponible en raison d\'un problème dans le well-known file : %1$s"</string>
<string name="screen_change_server_error_invalid_well_known">"Sliding sync nest pas disponible en raison dun problème dans le well-known file : %1$s"</string>
<string name="screen_change_server_error_no_sliding_sync_message">"Ce serveur ne prend actuellement pas en charge la synchronisation glissante."</string>
<string name="screen_change_server_form_header">"URL du serveur daccueil"</string>
<string name="screen_change_server_form_notice">"Vous ne pouvez vous connecter quà un serveur existant qui prend en charge le sliding sync. Ladministrateur de votre serveur daccueil devra le configurer. %1$s"</string>
@@ -23,7 +23,7 @@
<string name="screen_login_error_deactivated_account">"Ce compte a été désactivé."</string>
<string name="screen_login_error_invalid_credentials">"Nom dutilisateur et/ou mot de passe incorrects"</string>
<string name="screen_login_error_invalid_user_id">"Il ne sagit pas dun identifiant utilisateur valide. Format attendu : « @user:homeserver.org »"</string>
<string name="screen_login_error_refresh_tokens">"Ce serveur est configuré pour utiliser des tokens d\'actualisation. Ils ne sont pas pris en charge lors de l\'utilisation d\'une connexion basée sur un mot de passe."</string>
<string name="screen_login_error_refresh_tokens">"Ce serveur est configuré pour utiliser des tokens dactualisation. Ils ne sont pas pris en charge lors de lutilisation dune connexion basée sur un mot de passe."</string>
<string name="screen_login_error_unsupported_authentication">"Le serveur daccueil sélectionné ne prend pas en charge le mot de passe ou la connexion OIDC. Contactez votre administrateur ou choisissez un autre serveur daccueil."</string>
<string name="screen_login_form_header">"Saisissez vos identifiants"</string>
<string name="screen_login_subtitle">"Matrix est un réseau ouvert pour une communication sécurisée et décentralisée."</string>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="screen_signout_confirmation_dialog_content">"Är du säker på att du vill logga ut?"</string>
<string name="screen_signout_in_progress_dialog_content">"Loggar ut …"</string>
<string name="screen_signout_in_progress_dialog_content">"Loggar ut …"</string>
</resources>

View File

@@ -27,7 +27,7 @@
<string name="screen_room_attachment_source_location">"Position"</string>
<string name="screen_room_attachment_source_poll">"Sondage"</string>
<string name="screen_room_attachment_text_formatting">"Formatage du texte"</string>
<string name="screen_room_change_role_confirm_add_admin_description">"Vous ne pourrez pas annuler cette action. Vous êtes entrain de promouvoir l\'utilisateur pour qu\'il ait le même niveau que vous."</string>
<string name="screen_room_change_role_confirm_add_admin_description">"Vous ne pourrez pas annuler cette action. Vous êtes en train de promouvoir lutilisateur pour quil ait le même niveau que vous."</string>
<string name="screen_room_change_role_confirm_add_admin_title">"Ajouter un administrateur ?"</string>
<string name="screen_room_change_role_confirm_demote_self_action">"Rétrograder"</string>
<string name="screen_room_change_role_confirm_demote_self_description">"Vous ne pourrez pas annuler ce changement car vous vous rétrogradez, si vous êtes le dernier utilisateur privilégié du salon il sera impossible de retrouver les privilèges."</string>

View File

@@ -8,7 +8,7 @@
<string name="screen_edit_profile_error">"Ett okänt fel påträffades och informationen kunde inte ändras."</string>
<string name="screen_edit_profile_error_title">"Kunde inte uppdatera profilen"</string>
<string name="screen_edit_profile_title">"Redigera profil"</string>
<string name="screen_edit_profile_updating_details">"Uppdaterar profil …"</string>
<string name="screen_edit_profile_updating_details">"Uppdaterar profil …"</string>
<string name="screen_notification_settings_additional_settings_section_title">"Ytterligare inställningar"</string>
<string name="screen_notification_settings_calls_label">"Ljud- och videosamtal"</string>
<string name="screen_notification_settings_configuration_mismatch">"Konfigurationen matchar inte"</string>

View File

@@ -7,7 +7,7 @@
<string name="screen_bug_report_editor_description">"Sil vous plait, veuillez décrire le problème. Quavez-vous fait ? À quoi vous attendiez-vous ? Que sest-il réellement passé ? Veuillez ajouter le plus de détails possible."</string>
<string name="screen_bug_report_editor_placeholder">"Décrire le problème…"</string>
<string name="screen_bug_report_editor_supporting">"Si possible, veuillez rédiger la description en anglais."</string>
<string name="screen_bug_report_error_description_too_short">"La description est trop courte, veuillez fournir plus de détails sur ce qui s\'est passé. Merci !"</string>
<string name="screen_bug_report_error_description_too_short">"La description est trop courte, veuillez fournir plus de détails sur ce qui sest passé. Merci !"</string>
<string name="screen_bug_report_include_crash_logs">"Envoyer des journaux dincident"</string>
<string name="screen_bug_report_include_logs">"Autoriser à inclure les journaux techniques"</string>
<string name="screen_bug_report_include_screenshot">"Envoyer une capture décran"</string>

View File

@@ -5,7 +5,7 @@
<string name="screen_bug_report_contact_me_title">"Kontakta mig"</string>
<string name="screen_bug_report_edit_screenshot">"Redigera skärmdump"</string>
<string name="screen_bug_report_editor_description">"Vänligen beskriv problemet. Vad gjorde du? Vad förväntade du dig skulle hända? Vad hände istället? Vänligen gå in i så mycket detaljer som möjligt."</string>
<string name="screen_bug_report_editor_placeholder">"Beskriv problemet …"</string>
<string name="screen_bug_report_editor_placeholder">"Beskriv problemet …"</string>
<string name="screen_bug_report_editor_supporting">"Om möjligt, skriv beskrivningen på engelska."</string>
<string name="screen_bug_report_include_crash_logs">"Skicka kraschloggar"</string>
<string name="screen_bug_report_include_logs">"Tillåt loggar"</string>

View File

@@ -39,7 +39,7 @@
<string name="screen_room_member_list_manage_member_remove">"Retirer le membre"</string>
<string name="screen_room_member_list_manage_member_remove_confirmation_ban">"Retirer et bannir le membre"</string>
<string name="screen_room_member_list_manage_member_remove_confirmation_kick">"Retirer le membre uniquement"</string>
<string name="screen_room_member_list_manage_member_remove_confirmation_title">"Retirer le membre et interdire l\'adhésion à l\'avenir ?"</string>
<string name="screen_room_member_list_manage_member_remove_confirmation_title">"Retirer le membre et interdire ladhésion à lavenir ?"</string>
<string name="screen_room_member_list_manage_member_unban_action">"Débannir"</string>
<string name="screen_room_member_list_manage_member_user_info">"Voir profil"</string>
<string name="screen_room_member_list_mode_banned">"Banni"</string>

View File

@@ -27,7 +27,7 @@
<string name="screen_room_details_security_title">"Säkerhet"</string>
<string name="screen_room_details_share_room_title">"Dela rum"</string>
<string name="screen_room_details_topic_title">"Ämne"</string>
<string name="screen_room_details_updating_room">"Uppdaterar rummet …"</string>
<string name="screen_room_details_updating_room">"Uppdaterar rummet …"</string>
<plurals name="screen_room_member_list_header_title">
<item quantity="one">"%1$d person"</item>
<item quantity="other">"%1$d personer"</item>

View File

@@ -4,7 +4,7 @@
<string name="rich_text_editor_bullet_list">"Växla punktlista"</string>
<string name="rich_text_editor_close_formatting_options">"Stäng formateringsalternativ"</string>
<string name="rich_text_editor_code_block">"Växla kodblock"</string>
<string name="rich_text_editor_composer_placeholder">"Meddelande …"</string>
<string name="rich_text_editor_composer_placeholder">"Meddelande …"</string>
<string name="rich_text_editor_create_link">"Skapa en länk"</string>
<string name="rich_text_editor_edit_link">"Redigera länk"</string>
<string name="rich_text_editor_format_bold">"Använd fetstil"</string>

View File

@@ -67,7 +67,7 @@
<string name="action_leave">"Verlassen"</string>
<string name="action_leave_conversation">"Unterhaltung verlassen"</string>
<string name="action_leave_room">"Raum verlassen"</string>
<string name="action_load_more">"Mehr laden …"</string>
<string name="action_load_more">"Mehr laden …"</string>
<string name="action_manage_account">"Konto verwalten"</string>
<string name="action_manage_devices">"Geräte verwalten"</string>
<string name="action_next">"Weiter"</string>

View File

@@ -30,7 +30,7 @@
<string name="a11y_start_call">"Démarrer un appel"</string>
<string name="a11y_user_menu">"Menu utilisateur"</string>
<string name="a11y_voice_message_record">"Enregistrer un message vocal."</string>
<string name="a11y_voice_message_stop_recording">"Arrêter l\'enregistrement"</string>
<string name="a11y_voice_message_stop_recording">"Arrêter lenregistrement"</string>
<string name="action_accept">"Accepter"</string>
<string name="action_add_to_timeline">"Ajouter à la discussion"</string>
<string name="action_back">"Retour"</string>
@@ -187,7 +187,7 @@
<string name="common_security">"Sécurité"</string>
<string name="common_seen_by">"Vu par"</string>
<string name="common_sending">"Envoi en cours…"</string>
<string name="common_sending_failed">"Échec de l\'envoi"</string>
<string name="common_sending_failed">"Échec de lenvoi"</string>
<string name="common_sent">"Envoyé"</string>
<string name="common_server_not_supported">"Serveur non pris en charge"</string>
<string name="common_server_url">"URL du serveur"</string>

View File

@@ -78,7 +78,7 @@
<string name="common_audio">"Ljud"</string>
<string name="common_bubbles">"Bubblor"</string>
<string name="common_copyright">"Upphovsrätt"</string>
<string name="common_creating_room">"Skapar rum …"</string>
<string name="common_creating_room">"Skapar rum …"</string>
<string name="common_current_user_left_room">"Lämnade rummet"</string>
<string name="common_decryption_error">"Avkrypteringsfel"</string>
<string name="common_developer_options">"Utvecklaralternativ"</string>
@@ -96,7 +96,7 @@
<string name="common_invite_unknown_profile">"Det här Matrix-ID:t kan inte hittas, så inbjudan kanske inte tas emot."</string>
<string name="common_leaving_room">"Lämnar rummet"</string>
<string name="common_link_copied_to_clipboard">"Länk kopierad till klippbordet"</string>
<string name="common_loading">"Laddar …"</string>
<string name="common_loading">"Laddar …"</string>
<plurals name="common_member_count">
<item quantity="one">"%1$d medlem"</item>
<item quantity="other">"%1$d medlemmar"</item>
@@ -122,7 +122,7 @@
<string name="common_privacy_policy">"Integritetspolicy"</string>
<string name="common_reaction">"Reaktion"</string>
<string name="common_reactions">"Reaktioner"</string>
<string name="common_refreshing">"Uppdaterar …"</string>
<string name="common_refreshing">"Uppdaterar …"</string>
<string name="common_replying_to">"Svarar till %1$s"</string>
<string name="common_report_a_bug">"Rapportera en bugg"</string>
<string name="common_report_submitted">"Rapport inskickad"</string>
@@ -132,12 +132,12 @@
<string name="common_search_for_someone">"Sök efter någon"</string>
<string name="common_search_results">"Sökresultat"</string>
<string name="common_security">"Säkerhet"</string>
<string name="common_sending">"Skickar …"</string>
<string name="common_sending">"Skickar …"</string>
<string name="common_server_not_supported">"Servern stöds inte"</string>
<string name="common_server_url">"Server-URL"</string>
<string name="common_settings">"Inställningar"</string>
<string name="common_shared_location">"Delade plats"</string>
<string name="common_starting_chat">"Startar chatt …"</string>
<string name="common_starting_chat">"Startar chatt …"</string>
<string name="common_sticker">"Dekal"</string>
<string name="common_success">"Lyckades"</string>
<string name="common_suggestions">"Förslag"</string>
@@ -156,7 +156,7 @@
<string name="common_verification_cancelled">"Verifiering avbruten"</string>
<string name="common_verification_complete">"Verifieringen slutförd"</string>
<string name="common_video">"Video"</string>
<string name="common_waiting">"Väntar …"</string>
<string name="common_waiting">"Väntar …"</string>
<string name="dialog_title_confirmation">"Bekräftelse"</string>
<string name="dialog_title_error">"Fel"</string>
<string name="dialog_title_success">"Lyckades"</string>

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import sys
import re
from xml.dom import minidom
file = sys.argv[1]
@@ -49,7 +50,16 @@ for key in sorted(resource.keys()):
result = newContent.toprettyxml(indent=" ") \
.replace('<?xml version="1.0" ?>', '<?xml version="1.0" encoding="utf-8"?>') \
.replace('&quot;', '"')
.replace('&quot;', '"') \
.replace('...', '')
## Replace space by unbreakable space before punctuation
result = re.sub(r" ([\?\!\:…])", r" \1", result)
# Special treatment for French wording
if 'values-fr' in file:
## Replace ' with
result = re.sub(r"([cdjlmnsu])\\\'", r"\1", result, flags = re.IGNORECASE)
with open(file, "w") as text_file:
text_file.write(result)