John Ralls
73d1d080b5
GrampsLocale: When checking translations check full locale first
...
So that e.g. en_GB will be preferred over en if en_GB is in fact the
desired translation.
svn: r22173
2013-05-04 20:23:47 +00:00
John Ralls
d5537ab93a
Add translation to gen.merge.diff
...
svn: r22172
2013-05-04 20:23:37 +00:00
Paul Franklin
dc39360017
make the name consistent, across gramps
...
svn: r22121
2013-04-29 22:10:18 +00:00
Paul Franklin
c3ce490fa2
enable translated output for this report
...
svn: r22119
2013-04-29 19:26:41 +00:00
Paul Franklin
a831bb0113
enable translated output for this report
...
svn: r22114
2013-04-28 19:28:42 +00:00
Paul Franklin
f5eae77246
typos
...
svn: r22095
2013-04-24 01:01:47 +00:00
Jérôme Rapinat
49c0af18ee
need context differences for the "To Do" translation string (patch by Harmen Huizinga)
...
svn: r22069
2013-04-22 07:31:46 +00:00
John Ralls
5db0763970
GrampsLocale: Fix 'Foo has no attribute _Foo__get_type' execption
...
From moving the set_locale function to the superclass. One can get
carried away with enforcing private attributes...
svn: r22062
2013-04-21 17:49:08 +00:00
John Ralls
143dcc08fa
Bug 6533: Report plugin name when failing to load an add-on translation
...
Message now says (e.g.) WARNING: Plugin ExtendedAttributes has no translation for any of your configured languages, using US English instead
svn: r22039
2013-04-20 23:10:13 +00:00
John Ralls
2e453b678a
GrampsLocale: Add explanatory comment
...
After I stopped myself from fixing something that was done right!
svn: r22038
2013-04-20 23:10:06 +00:00
John Ralls
a579fd1ad9
GrampsLocale: Mac: Align flow of user preferences to match other OSes.
...
Also add diagnostics to make Tim Lyons happy.
svn: r22037
2013-04-20 23:10:01 +00:00
John Ralls
2054c0ad46
GrampsLocale: Win32: Clean up extraneous conditions, don't set self.language prematurely
...
svn: r22036
2013-04-20 23:09:57 +00:00
John Ralls
a2e17b7b4a
GrampsLocale: Posix: Move LC_MESSAGES check to setting self.language
...
svn: r22035
2013-04-20 23:09:51 +00:00
John Ralls
1832f7bdb5
GrampsLocale: Add some debugging messages.
...
Move the warning about failure to after the last attempt.
svn: r22034
2013-04-20 23:09:46 +00:00
John Ralls
9daf584c74
GrampsLocale: Init_from_environment: Change precedence
...
LC_MESSAGES takes precedence over LC_CTYPE for setting self.lang
$LANGUAGES overrides $LANG, $LC_FOO for setting translations
svn: r22033
2013-04-20 23:09:41 +00:00
John Ralls
e9770ef48f
GrampsLocale: Fix indentation error
...
svn: r22032
2013-04-20 23:09:36 +00:00
John Ralls
7a17f9b420
MacLocale: Make sure the overrides work correctly
...
And that we follow the user's preferences correctly or issue a warning that we've defaulted to US English if we can't.
svn: r22031
2013-04-20 23:09:31 +00:00
John Ralls
b7f6055af8
Use GrampsLocale.encoding to get the code set instead of locale
...
svn: r22029
2013-04-20 23:09:21 +00:00
John Ralls
467a9b1c43
GrampsLocale: Replace gen.plug.utils gfloat()
...
With GrampsLocale.float().
Also remove gen.plug.utils gformat(), which was written to work
around string formatting with %f localizing the decimal point,
which it doesn't do. locale.format() does, but it wasn't being
used anyway.
svn: r22028
2013-04-20 23:09:16 +00:00
John Ralls
769203162c
GrampsLocale: Wrap locale.format and locale.format_string
...
To concentrate the locale dependency in grampslocale.py
svn: r22027
2013-04-20 23:09:09 +00:00
John Ralls
963712e978
Remove some imports of locale where nothing it exports was used.
...
svn: r22026
2013-04-20 23:09:02 +00:00
John Ralls
6400b8b29c
GrampsLocale: Add GrampsLocale attributes numeric and currency
...
svn: r22024
2013-04-20 23:08:48 +00:00
John Ralls
6804278fc1
MacLocale: Fix missing subscript.
...
svn: r22023
2013-04-20 23:08:42 +00:00
Paul Franklin
dc128110bc
typos
...
svn: r22021
2013-04-19 16:58:24 +00:00
Paul Franklin
cceb28c5b9
refactor: move name_format into stdoptions.py
...
svn: r22009
2013-04-17 20:49:50 +00:00
Benny Malengier
86686c764b
6618: Export CSV crashes gramps 4.0 beta
...
svn: r21998
2013-04-15 11:01:08 +00:00
John Ralls
5f98900c27
Remove unnecessary (and broken in Py3) import
...
svn: r21977
2013-04-13 14:31:30 +00:00
Nick Hall
bc63594df4
6622: Change regular expression rules to use search rather than match
...
svn: r21976
2013-04-13 14:30:21 +00:00
John Ralls
00aa00fbf5
GrampsLocale: Remove get_translation()
...
Only one base translation per locale. To set up a different locale
on any axis (locale, domain, directory, or languages) instantiate a
secondary locale by calling GrampsLocale() with the appropriate
arguments.
svn: r21968
2013-04-12 22:32:11 +00:00
John Ralls
56254d4a14
GrampsLocale: Integrate libtranslate functions into GrampsLocale
...
And remove libtranslate
svn: r21967
2013-04-12 22:27:54 +00:00
John Ralls
665206df85
GrampsLocale: Extract 2 reporting functions
...
set_translation() to the Report class
Add a new module stdoptions to gen.plug.report with function
add_localization_option(). The intent of stdoptions is to reduce the code-copying among reports; this is the first bit.
svn: r21966
2013-04-12 22:27:44 +00:00
John Ralls
27f667e343
GrampsLocale: Add get_date and get_type functions
...
To enable GrampsLocale to replace libtranlate.py's Translation
class.
svn: r21965
2013-04-12 22:27:32 +00:00
John Ralls
db66851363
GrampsLocale: Add date_parser and date_displayer properties
...
svn: r21964
2013-04-12 22:27:23 +00:00
John Ralls
6f078627ca
MacLocale: Capture collation qualifications
...
svn: r21963
2013-04-12 22:27:15 +00:00
John Ralls
2c532baf1c
GrampsLocale: Make dictionaries class variables
...
lang_map and country_map
svn: r21962
2013-04-12 22:27:05 +00:00
John Ralls
a422b30fd6
GrampsLocale: Refactor/clean up initialization
...
Includes moving encoding to be a class variable.
svn: r21961
2013-04-12 22:26:55 +00:00
Paul Franklin
25315ceece
add person-index entries, for book report
...
svn: r21953
2013-04-10 21:56:10 +00:00
Paul Franklin
3702704ef2
missing import
...
svn: r21948
2013-04-10 19:01:14 +00:00
Nick Hall
36f27ebefb
6599: Fix python3 error
...
svn: r21945
2013-04-10 17:39:31 +00:00
Nick Hall
aa0e413d5f
6599: Add regex parameter to rules which override the constructor
...
svn: r21943
2013-04-10 13:25:02 +00:00
Peter Landgren
a71e8f5689
Update for spelling of Family Tree.
...
svn: r21938
2013-04-10 09:34:27 +00:00
Nick Hall
59d9bc25c0
6599: Add regular expression option to rules using the match_substring method
...
svn: r21935
2013-04-09 13:52:09 +00:00
Nick Hall
cb028cea56
6599: Fix matching empty fields in empty locations using regular expressions
...
svn: r21913
2013-04-06 17:27:26 +00:00
John Ralls
01b4b7dc4e
GrampsLocale: Ensure self.encoding exists before testing it
...
svn: r21899
2013-04-05 23:40:55 +00:00
John Ralls
e21ba6c432
GrampsLocale: Clean up _init_from_environment even more
...
And do it right this time!
svn: r21898
2013-04-05 23:40:49 +00:00
Tim G L Lyons
445f10396a
Put maxsize back
...
svn: r21896
2013-04-05 17:14:32 +00:00
Tim G L Lyons
60b57a996e
write.py: After the bsddb version has been upgraded, if the schema versions also needs to be upgraded, output a separate dialog asking the user whether he wants to upgrade the schema. (As requested by Benny).
...
svn: r21888
2013-04-05 10:54:35 +00:00
John Ralls
b72ddb7f47
GrampsLocale: Improve windows handling of no locale
...
svn: r21882
2013-04-04 21:06:19 +00:00
John Ralls
04c146669b
GrampsLocale: Ensure posix collation and calendar are set correctly
...
svn: r21881
2013-04-04 21:06:09 +00:00
John Ralls
fc23bbd93a
GrampsLocale: Better handling of unset $LANG or $LANG == 'C'
...
svn: r21880
2013-04-04 21:04:48 +00:00