Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/219'
Browse files Browse the repository at this point in the history
* origin/pr/219:
  Fixed transifex integration
  • Loading branch information
marmarek committed Dec 9, 2019
2 parents 250cfd4 + 0329383 commit cca5d7d
Show file tree
Hide file tree
Showing 4 changed files with 627 additions and 1,677 deletions.
7 changes: 5 additions & 2 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------------------
Expand Down
14 changes: 5 additions & 9 deletions qubesmanager/i18n/qubesmanager_en.ts
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -2577,9 +2576,6 @@ Template</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>exception</name>
</context>
<context>
<name>template-manager</name>
<message>
Expand Down
Loading

0 comments on commit cca5d7d

Please sign in to comment.