Laurent Monin
cdffc1a404
Use _get_option_name() to insert command-line info in countries.py header
...
This way, even if option is renamed, comment will be always up-to-date.
2014-03-06 23:09:42 +01:00
Laurent Monin
321b48373c
Pass format keyword arguments directly to write_utf8()
...
'{' and '}' were escaped in `header` and `footer` strings
2014-03-06 23:09:42 +01:00
Laurent Monin
f5197652d2
Add helper _get_option_name() which finds name of the option for current Command
...
Command class has a get_command_name() but it returns the class's name, not the name
of the option as declared in setup cmdclass dict.
2014-03-06 23:09:41 +01:00
Laurent Monin
2e247a708d
_exit_with_error() -> _exit()
...
Exit with return code and message when needed.
2014-03-06 23:09:41 +01:00
Laurent Monin
213d26f992
Modify _exit_with_error() so message is optional
...
The Transifex client itself already has very descriptive error message,
so just use return code in `picard_get_po_files()`
2014-03-06 23:09:41 +01:00
Laurent Monin
210c7a2ff1
Pass command as list to subprocess.call()
2014-03-06 23:09:41 +01:00
Laurent Monin
f20cb29b6e
Add notice about new setup.py commands
2014-03-06 23:09:41 +01:00
Laurent Monin
e15a3d618f
update_countries doesn't update related translations anymore
...
It just downloads countries.pot as it is all what it is needed to rebuild
countries.py
countries/*.po are updated using the get_po_files command.
2014-03-06 23:09:41 +01:00
Laurent Monin
6c809fcc01
Add an option to get_po_files to override default minimun percentage
...
Update po/README.md so the actual value isn't written, if we change the default value
it will be only at once place.
2014-03-06 23:09:41 +01:00
Laurent Monin
ba8178e894
Force download of all .po files when using get_po_files command
2014-03-06 23:09:41 +01:00
Laurent Monin
cdc5b338a0
Download only countries.pot to regenerate countries.py
2014-03-06 23:09:41 +01:00
Laurent Monin
3442ba96e4
Use list to handle tx pull options
2014-03-06 23:09:41 +01:00
Laurent Monin
c6154bc573
Move information about translations to po/README.md
2014-03-06 23:09:41 +01:00
Laurent Monin
8000243d8b
Add regen_pot_file command to setup.py
...
It is using Babel's Distutils Integration command `extract_messages`
instead of pybabel command line command.
See: http://babel.pocoo.org/docs/setup/
2014-03-06 23:09:41 +01:00
Laurent Monin
74c2fedcd3
Add helper _exit_with_error() which log and exit with return code
2014-03-06 23:09:41 +01:00
Laurent Monin
2f7c83f28d
Regenerate countries.py from updated countries.pot
2014-03-06 23:09:40 +01:00
Laurent Monin
395cdeaa66
Warn if no country code was found, ie. when file format changed.
2014-03-06 23:09:40 +01:00
Laurent Monin
3468dddd4f
Update countries.pot parser since format changed (iso_code -> iso.code)
...
It changed in https://bitbucket.org/metabrainz/musicbrainz-server/pull-request/426/mbs-6373-only-translate-and-extract-area/diff
2014-03-06 23:09:40 +01:00
Laurent Monin
5aacfe2880
Use a constant for common options of tx pull
2014-03-06 23:09:40 +01:00
Laurent Monin
bafe8fac13
Add command get_po_files to setup.py
...
It runs tx pull with needed options.
Translations with less than 5% translated are ignored.
2014-03-06 23:09:40 +01:00
Laurent Monin
401dabc66d
Build, install and use all available locales
...
Drop the use of UI_LANGUAGES in setup.py which was restricting available translations,
even though translation was available from transifex.
Locales not in UI_LANGUAGES cannot be selected from Picard Advanced UI option,
but will be used if it is set to system default.
2014-03-06 23:09:40 +01:00
Frederik "Freso" S. Olesen
ce7c32025d
Use ungettext_countries() for translating country names.
2014-03-06 23:09:40 +01:00
Frederik "Freso" S. Olesen
1165b03543
Replace the release countries in const.py with import from countries.py.
2014-03-06 23:09:40 +01:00
Laurent Monin
2018154f84
Add generated picard/countries.py
2014-03-06 23:09:40 +01:00
Laurent Monin
770c0e7bde
Add po/countries/countries.pot to git ignore list
...
We don't want this one to be committed to git repo, it is not created
by parsing Picard code.
2014-03-06 23:09:40 +01:00
Laurent Monin
55c8468c80
Add a update_countries command to setup.py
...
It retrieves countries.pot from transifex and uses it to generated picard/countries.py
2014-03-06 23:09:40 +01:00
Laurent Monin
a94c76be49
Add note to NEWS.txt about PICARD-205 being fixed.
2014-03-06 23:09:40 +01:00
Frederik "Freso" S. Olesen
c24aac4aa8
Build picard-countries.po for enabled languages.
2014-03-06 23:09:40 +01:00
Frederik "Freso" S. Olesen
24881451fb
Set up Transifex to pull the country name translations.
2014-03-06 23:09:40 +01:00
Wieland Hoffmann
8fc100c40d
Use getopt.gnu_getopt
...
If you were ever annoyed by starting Picard from the console with a
specific folder, noticing you forgot the `-d`, stopping Picard, pressing
arrow-up, adding the `-d` to the end of the line, only to notice that
this didn't help at all, this commit is for you because now the option
parsing doesn't stop after the first thing that's not an option.
2014-03-06 23:09:39 +01:00
Sophist
6054bb412a
Merge remote-tracking branch 'upstream/master' into sophist_add_itunes_composer_support
2014-03-05 12:02:29 +00:00
Sophist
1a11fb6df3
Merge remote-tracking branch 'upstream/master' into sophist_tweak_options_pages
2014-03-05 12:01:38 +00:00
Laurent Monin
005e591d80
Merge pull request #216 from Typz/covertArtDropIndication
...
Fix coverart drop indication.
2014-03-05 11:07:39 +01:00
Laurent Monin
2e3db1805b
Merge pull request #227 from Sophist-UK/sophist_update_help_pages
...
Update links to help pages.
2014-03-05 10:52:50 +01:00
Sophist
7d8ad12fc2
Make Title Case consistent...
...
... as reported by nikki?
2014-03-04 21:02:35 +00:00
Sophist
7e3cb14a38
Update links to help pages.
2014-03-04 20:47:14 +00:00
Francois Ferrand
81581df1c9
Allow dropping image directly from Google image results.
2014-03-04 16:24:29 +01:00
Sophist
02c4ed64ed
Remove iTunes from NEWS.
2014-03-02 20:36:59 +00:00
Sophist
2d633e8a2a
Remove iTunes from label.
2014-03-02 20:36:58 +00:00
Sophist
85bb802082
Add NEWS entry.
2014-03-02 20:36:57 +00:00
Sophist
06d7d51322
Add composer from mbxml
2014-03-02 20:36:56 +00:00
Sophist
6742d8f841
Add support to read / write composer sort
2014-03-02 20:36:55 +00:00
Sophist
beb6d05ad4
Fix bugs
2014-03-02 20:36:54 +00:00
Sophist
d8b45448ef
Fix-up code to handle default translations.
2014-03-02 20:36:54 +00:00
Sophist
803ad35be6
Return default if translate_artist_names unset
2014-03-02 20:36:53 +00:00
Sophist
9a933b7479
Revert "Fix indentation and hence logic."
...
This reverts commit fec4e107bb37bc7b9baab14ee9e5249d095a2239.
2014-03-02 20:36:52 +00:00
Sophist
408694df92
Return translated sort as well as translated name
2014-03-02 20:36:51 +00:00
Sophist
bee2332e82
Fix indentation and hence logic.
...
else looks like it should be associated with if.
So unindenting to make it so.
2014-03-02 20:36:50 +00:00
Michael Wiencek
0456c7e2ee
Merge pull request #220 from Sophist-UK/sophist_fix_log_error_on_timeout
...
Handle network errors better
2014-03-02 10:09:26 -06:00
Michael Wiencek
e56218b7a7
Merge pull request #223 from Sophist-UK/sophist_increase_status_update_frequency
...
Increase statusbar update frequency...
2014-03-02 08:59:32 -06:00