Browse Source

Fixed transifex integration

Corrected .tx/config file and added instructions on pulling/pushing translations
to transifex.

references QubesOS/qubes-issues#5410
references QubesOS/qubes-issues#3548
Marta Marczykowska-Górecka 4 years ago
parent
commit
0329383453
4 changed files with 156 additions and 352 deletions
  1. 5 2
      .tx/config
  2. 9 0
      README.md
  3. 5 9
      qubesmanager/i18n/qubesmanager_en.ts
  4. 137 341
      qubesmanager/i18n/qubesmanager_es.ts

+ 5 - 2
.tx/config

@@ -1,7 +1,10 @@
 [main]
 host = https://www.transifex.com
 
-[qubes.qubes_manager]
-file_filter = i18n/qubesmanager_<lang>.ts
+[qubes.qubesmanager]
+file_filter = qubesmanager/i18n/qubesmanager_<lang>.ts
+minimum_perc = 0
+source_file = qubesmanager/i18n/qubesmanager_en.ts
 source_lang = en
 type = QT
+

+ 9 - 0
README.md

@@ -20,6 +20,15 @@ This will keep translated strings, but will add new ones.
 
 Commit updated `.ts` files into `i18n` directory.
 
+### Pushing translations to transifex
+You'll need a token (for your own transifex acount, to configure it just run
+tx config once).
+
+tx push -s
+
+### Getting translation from transifex
+tx pull
+
 
 Tests
 ----------------------

+ 5 - 9
qubesmanager/i18n/qubesmanager_en.ts

@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="2.0">
+<!DOCTYPE TS>
+<TS version="2.1" language="en">
 <context>
     <name>AboutDialog</name>
     <message>
@@ -236,8 +237,9 @@ p, li { white-space: pre-wrap; }
     <message numerus="yes">
         <location filename="../clipboard.py" line="90"/>
         <source>%n byte(s)</source>
-        <translation type="unfinished">
-            <numerusform></numerusform>
+        <translation>
+            <numerusform>byte</numerusform>
+            <numerusform>bytes</numerusform>
         </translation>
     </message>
     <message>
@@ -1568,9 +1570,6 @@ The qube must be running to disable seamless mode; this setting is not persisten
         <translation type="unfinished"></translation>
     </message>
 </context>
-<context>
-    <name>StatusItem</name>
-</context>
 <context>
     <name>TemplateManager</name>
     <message>
@@ -2577,9 +2576,6 @@ Template</source>
         <translation type="unfinished"></translation>
     </message>
 </context>
-<context>
-    <name>exception</name>
-</context>
 <context>
     <name>template-manager</name>
     <message>

File diff suppressed because it is too large
+ 137 - 341
qubesmanager/i18n/qubesmanager_es.ts


Some files were not shown because too many files changed in this diff