diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-06-07 00:38:22 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-06-07 00:39:28 +0200 |
| commit | a60c0f58470f78545544d01d525eae481511abec (patch) | |
| tree | f06d8ace50fcf7f773db6e03d142081c3a9ac62b /server/common/src/testdata | |
| parent | ad893a4fb44244132d710d7f94fc99a7d83f1b87 (diff) | |
grit: Add basic parsing of xlf
This doesn't read the full xliff format, it only reads the translation
target string and the id for the translation unit.
Diffstat (limited to 'server/common/src/testdata')
4 files changed, 135 insertions, 0 deletions
diff --git a/server/common/src/testdata/grit/translations/base_en_gb.xlf b/server/common/src/testdata/grit/translations/base_en_gb.xlf new file mode 100644 index 0000000..d77bb3a --- /dev/null +++ b/server/common/src/testdata/grit/translations/base_en_gb.xlf @@ -0,0 +1,48 @@ +<?xml version='1.0' encoding='UTF-8'?> +<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> +<file datatype="xml" source-language="en-US" original="base.grd" target-language="en-gb"> +<body> +<trans-unit id="8820817407110198400"> + <source>Bookmarks</source> + <target>Bookmarks</target> + <note>IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + </note> +</trans-unit> +<trans-unit id="8443102241046796905"> + <source>Welcome to <ph id="STRING"/></source> + <target>Welcome to <ph id="STRING"/></target> + <note>IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + </note> +</trans-unit> +<trans-unit id="2466140279568640908"> + <source>By using this application you are agreeing to Opera's <ph id="TOS_BEGIN"/>Terms of Service<ph id="TOS_END"/>. Also, you can learn how Opera handles and protects your data in our <ph id="PRIVACY_BEGIN"/>Privacy Statement<ph id="PRIVACY_END"/>.</source> + <target>By using this application you are agreeing to Opera's <ph id="TOS_BEGIN"/>Terms of Service<ph id="TOS_END"/>. Also, you can learn how Opera handles and protects your data in our <ph id="PRIVACY_BEGIN"/>Privacy Statement<ph id="PRIVACY_END"/>.</target> + <note>IDS_START_TERMS + First startup information about the license and privacy terms. + </note> +</trans-unit> +<trans-unit id="7770247413830876286" xml:space="preserve"> + <source>{BOOKMARKS, plural, + one {<ph id="COUNT"/> folder deleted} + few {<ph id="COUNT"/> folders deleted} + many {<ph id="COUNT"/> folders deleted} + other {<ph id="COUNT"/> folders deleted}}</source> + <target>{BOOKMARKS, plural, + one {<ph id="COUNT"/> folder deleted} + few {<ph id="COUNT"/> folders deleted} + many {<ph id="COUNT"/> folders deleted} + other {<ph id="COUNT"/> folders deleted}}</target> + <note>IDS_BOOKMARKS_FOLDERS_DELETED + Message which is shown when one or more folders have been deleted from the bookmark list. + Example-one COUNT: 1 + Example-few COUNT: 15 + Example-many COUNT: 100 + Example-other COUNT: 42 + </note> +</trans-unit> +</body> +</file> +</xliff> diff --git a/server/common/src/testdata/grit/translations/base_my-Zawgyi.xlf b/server/common/src/testdata/grit/translations/base_my-Zawgyi.xlf new file mode 100644 index 0000000..33c2a31 --- /dev/null +++ b/server/common/src/testdata/grit/translations/base_my-Zawgyi.xlf @@ -0,0 +1,29 @@ +<?xml version='1.0' encoding='UTF-8'?> +<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> +<file datatype="xml" source-language="en-US" original="base.grd" target-language="my-zg"> +<body> +<trans-unit id="8820817407110198400"> + <source>Bookmarks</source> + <target>ဝက္ဘ္လိပ္စာ မွတ္ထားမွုမ်ား</target> + <note>IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + </note> +</trans-unit> +<trans-unit id="8443102241046796905"> + <source>Welcome to <ph id="STRING"/></source> + <target><ph id="STRING"/> မွ ႀကိဳဆိုပါသည္</target> + <note>IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + </note> +</trans-unit> +<trans-unit id="2466140279568640908"> + <source>By using this application you are agreeing to Opera's <ph id="TOS_BEGIN"/>Terms of Service<ph id="TOS_END"/>. Also, you can learn how Opera handles and protects your data in our <ph id="PRIVACY_BEGIN"/>Privacy Statement<ph id="PRIVACY_END"/>.</source> + <target>ဤအပလီေကးရွင္းကို အသုံးျပဳျခင္းျဖင့္ သင္သည္ Opera ၏ <ph id="TOS_BEGIN"/>ဝန္ေဆာင္မွုစည္းမ်ဥ္းမ်ား<ph id="TOS_END"/> ကို သေဘာတူရာ ေရာက္ပါသည္။ ထို႔အျပင္ ကၽြန္ုပ္တို႔၏<ph id="PRIVACY_BEGIN"/>ကိုယ္ေရးလုံျခဳံမွု ထုတ္ျပန္ခ်က္<ph id="PRIVACY_END"/> ထဲတြင္ သင့္ေဒတာမ်ားကို Opera ၏ ကိုင္တြယ္ပုံႏွင့္ ကာကြယ္ပုံတို႔ကိုလည္း ေလ့လာနိုင္သည္။</target> + <note>IDS_START_TERMS + First startup information about the license and privacy terms. + </note> +</trans-unit> +</body> +</file> +</xliff> diff --git a/server/common/src/testdata/grit/translations/base_my.xlf b/server/common/src/testdata/grit/translations/base_my.xlf new file mode 100644 index 0000000..eea3dc8 --- /dev/null +++ b/server/common/src/testdata/grit/translations/base_my.xlf @@ -0,0 +1,29 @@ +<?xml version='1.0' encoding='UTF-8'?> +<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> +<file datatype="xml" source-language="en-US" original="base.grd" target-language="my"> +<body> +<trans-unit id="8820817407110198400"> + <source>Bookmarks</source> + <target>ဝက်ဘ်လိပ်စာ မှတ်ထားမှုများ</target> + <note>IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + </note> +</trans-unit> +<trans-unit id="8443102241046796905"> + <source>Welcome to <ph id="STRING"/></source> + <target><ph id="STRING"/> မှ ကြိုဆိုပါသည်</target> + <note>IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + </note> +</trans-unit> +<trans-unit id="2466140279568640908"> + <source>By using this application you are agreeing to Opera's <ph id="TOS_BEGIN"/>Terms of Service<ph id="TOS_END"/>. Also, you can learn how Opera handles and protects your data in our <ph id="PRIVACY_BEGIN"/>Privacy Statement<ph id="PRIVACY_END"/>.</source> + <target>ဤအပလီကေးရှင်းကို အသုံးပြုခြင်းဖြင့် သင်သည် Opera ၏ <ph id="TOS_BEGIN"/>ဝန်ဆောင်မှုစည်းမျဉ်းများ<ph id="TOS_END"/> ကို သဘောတူရာ ရောက်ပါသည်။ ထို့အပြင် ကျွန်ုပ်တို့၏<ph id="PRIVACY_BEGIN"/>ကိုယ်ရေးလုံခြုံမှု ထုတ်ပြန်ချက်<ph id="PRIVACY_END"/> ထဲတွင် သင့်ဒေတာများကို Opera ၏ ကိုင်တွယ်ပုံနှင့် ကာကွယ်ပုံတို့ကိုလည်း လေ့လာနိုင်သည်။</target> + <note>IDS_START_TERMS + First startup information about the license and privacy terms. + </note> +</trans-unit> +</body> +</file> +</xliff> diff --git a/server/common/src/testdata/grit/translations/base_sv.xlf b/server/common/src/testdata/grit/translations/base_sv.xlf new file mode 100644 index 0000000..e33a385 --- /dev/null +++ b/server/common/src/testdata/grit/translations/base_sv.xlf @@ -0,0 +1,29 @@ +<?xml version='1.0' encoding='UTF-8'?> +<xliff xmlns="urn:oasis:names:tc:xliff:document:1.2" version="1.2"> +<file datatype="xml" source-language="en-US" original="base.grd" target-language="sv"> +<body> +<trans-unit id="8820817407110198400"> + <source>Bookmarks</source> + <target>Bokmärken</target> + <note>IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + </note> +</trans-unit> +<trans-unit id="8443102241046796905"> + <source>Welcome to <ph id="STRING"/></source> + <target>Välkommen till <ph id="STRING"/></target> + <note>IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + </note> +</trans-unit> +<trans-unit id="2466140279568640908"> + <source>By using this application you are agreeing to Opera's <ph id="TOS_BEGIN"/>Terms of Service<ph id="TOS_END"/>. Also, you can learn how Opera handles and protects your data in our <ph id="PRIVACY_BEGIN"/>Privacy Statement<ph id="PRIVACY_END"/>.</source> + <target>I och med din användning av det här programmet samtycker du till Operas <ph id="TOS_BEGIN"/>Licensvillkor<ph id="TOS_END"/>. Du kan också läsa om hur Opera hanterar och skyddar dina data i vårt <ph id="PRIVACY_BEGIN"/>Sekretessmeddelande<ph id="PRIVACY_END"/>.</target> + <note>IDS_START_TERMS + First startup information about the license and privacy terms. + </note> +</trans-unit> +</body> +</file> +</xliff> |
