From a60c0f58470f78545544d01d525eae481511abec Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sat, 7 Jun 2025 00:38:22 +0200 Subject: 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. --- .../src/testdata/grit/translations/base_en_gb.xlf | 48 ++++++++++++++++++++++ .../testdata/grit/translations/base_my-Zawgyi.xlf | 29 +++++++++++++ .../src/testdata/grit/translations/base_my.xlf | 29 +++++++++++++ .../src/testdata/grit/translations/base_sv.xlf | 29 +++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 server/common/src/testdata/grit/translations/base_en_gb.xlf create mode 100644 server/common/src/testdata/grit/translations/base_my-Zawgyi.xlf create mode 100644 server/common/src/testdata/grit/translations/base_my.xlf create mode 100644 server/common/src/testdata/grit/translations/base_sv.xlf (limited to 'server/common/src/testdata/grit') 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 @@ + + + + + + Bookmarks + Bookmarks + IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + + + + Welcome to + Welcome to + IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + + + + By using this application you are agreeing to Opera's Terms of Service. Also, you can learn how Opera handles and protects your data in our Privacy Statement. + By using this application you are agreeing to Opera's Terms of Service. Also, you can learn how Opera handles and protects your data in our Privacy Statement. + IDS_START_TERMS + First startup information about the license and privacy terms. + + + + {BOOKMARKS, plural, + one { folder deleted} + few { folders deleted} + many { folders deleted} + other { folders deleted}} + {BOOKMARKS, plural, + one { folder deleted} + few { folders deleted} + many { folders deleted} + other { folders deleted}} + 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 + + + + + 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 @@ + + + + + + Bookmarks + ဝက္ဘ္လိပ္စာ မွတ္ထားမွုမ်ား + IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + + + + Welcome to + မွ ႀကိဳဆိုပါသည္ + IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + + + + By using this application you are agreeing to Opera's Terms of Service. Also, you can learn how Opera handles and protects your data in our Privacy Statement. + ဤအပလီေကးရွင္းကို အသုံးျပဳျခင္းျဖင့္ သင္သည္ Opera ၏ ဝန္ေဆာင္မွုစည္းမ်ဥ္းမ်ား ကို သေဘာတူရာ ေရာက္ပါသည္။ ထို႔အျပင္ ကၽြန္ုပ္တို႔၏ကိုယ္ေရးလုံျခဳံမွု ထုတ္ျပန္ခ်က္ ထဲတြင္ သင့္ေဒတာမ်ားကို Opera ၏ ကိုင္တြယ္ပုံႏွင့္ ကာကြယ္ပုံတို႔ကိုလည္း ေလ့လာနိုင္သည္။ + IDS_START_TERMS + First startup information about the license and privacy terms. + + + + + 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 @@ + + + + + + Bookmarks + ဝက်ဘ်လိပ်စာ မှတ်ထားမှုများ + IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + + + + Welcome to + မှ ကြိုဆိုပါသည် + IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + + + + By using this application you are agreeing to Opera's Terms of Service. Also, you can learn how Opera handles and protects your data in our Privacy Statement. + ဤအပလီကေးရှင်းကို အသုံးပြုခြင်းဖြင့် သင်သည် Opera ၏ ဝန်ဆောင်မှုစည်းမျဉ်းများ ကို သဘောတူရာ ရောက်ပါသည်။ ထို့အပြင် ကျွန်ုပ်တို့၏ကိုယ်ရေးလုံခြုံမှု ထုတ်ပြန်ချက် ထဲတွင် သင့်ဒေတာများကို Opera ၏ ကိုင်တွယ်ပုံနှင့် ကာကွယ်ပုံတို့ကိုလည်း လေ့လာနိုင်သည်။ + IDS_START_TERMS + First startup information about the license and privacy terms. + + + + + 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 @@ + + + + + + Bookmarks + Bokmärken + IDS_BOOKMARKS_FRAGMENT_TITLE + Title which is shown on the main bookmarks view. + + + + Welcome to + Välkommen till + IDS_GENERIC_WELCOME + Generic welcome string. + Example STRING: Opera + + + + By using this application you are agreeing to Opera's Terms of Service. Also, you can learn how Opera handles and protects your data in our Privacy Statement. + I och med din användning av det här programmet samtycker du till Operas Licensvillkor. Du kan också läsa om hur Opera hanterar och skyddar dina data i vårt Sekretessmeddelande. + IDS_START_TERMS + First startup information about the license and privacy terms. + + + + + -- cgit v1.2.3-70-g09d2