Permalink
Browse files

Fix selection of Portuguese translation files.

Qt returns "Brazil" as country of QLocale("pt") instead of "Portugal". This conflicts with QLocale("pt_BR").
Rename the pt.ts to pt_PT and put a language mapping in tx's config for that locale.
Closes #4776.
  • Loading branch information...
sledgehammer999 committed Mar 18, 2016
1 parent 3067f82 commit 0da4bfa0cfc32b32db18c94bbc0e50b5a79271ad
Showing with 3 additions and 2 deletions.
  1. +1 −0 .tx/config
  2. +1 −1 src/lang.qrc
  3. 0 src/lang/{qbittorrent_pt.ts → qbittorrent_pt_PT.ts}
  4. +1 −1 src/src.pro
View
@@ -3,6 +3,7 @@ host = https://www.transifex.com
[qbittorrent.qbittorrent_master]
file_filter = src/lang/qbittorrent_<lang>.ts
lang_map = pt: pt_PT
source_file = src/lang/qbittorrent_en.ts
source_lang = en
type = QT
View
@@ -31,7 +31,7 @@
<file>lang/qbittorrent_nb.qm</file>
<file>lang/qbittorrent_nl.qm</file>
<file>lang/qbittorrent_pl.qm</file>
<file>lang/qbittorrent_pt.qm</file>
<file>lang/qbittorrent_pt_PT.qm</file>
<file>lang/qbittorrent_pt_BR.qm</file>
<file>lang/qbittorrent_ro.qm</file>
<file>lang/qbittorrent_ru.qm</file>
File renamed without changes.
View
@@ -98,7 +98,7 @@ TRANSLATIONS = \
$$LANG_PATH/qbittorrent_sk.ts \
$$LANG_PATH/qbittorrent_sl.ts \
$$LANG_PATH/qbittorrent_ro.ts \
$$LANG_PATH/qbittorrent_pt.ts \
$$LANG_PATH/qbittorrent_pt_PT.ts \

This comment has been minimized.

Show comment
Hide comment
@DU911

DU911 Feb 19, 2018

Then I would suggest also moving line 107 to just after 101 so they are kept togheter, like file above.
$$LANG_PATH/qbittorrent_pt_PT.ts
$$LANG_PATH/qbittorrent_pt_BR.ts

@DU911

DU911 Feb 19, 2018

Then I would suggest also moving line 107 to just after 101 so they are kept togheter, like file above.
$$LANG_PATH/qbittorrent_pt_PT.ts
$$LANG_PATH/qbittorrent_pt_BR.ts

$$LANG_PATH/qbittorrent_nb.ts \
$$LANG_PATH/qbittorrent_fi.ts \
$$LANG_PATH/qbittorrent_da.ts \

0 comments on commit 0da4bfa

Please sign in to comment.