Commit Graph

22061 Commits

Author SHA1 Message Date
John Ralls
15d1d0e6d0 7258: Replace some os.environ['foo'] lookups missed earlier.
(cherry picked from commit 71650917bf)
2014-03-27 11:37:32 -07:00
John Ralls
50f514ce51 7258: Transcode FS paths to avoid a crash
The problem is really that the paths get munged into strings in the
system codepage, losing or misinterpreting most Unicode. Python's os
module is smart enough to encode the unicode to the file system
encoding, but the bsddb module needs a little help.

Provide a new function, constfunc.get_env_var(name, default=None) to
cleanly import Unicode environment variables in Windows and use it in
place of all instances of foo = os.environ['BAR] or foo =
os.environ.get('BAR').

Os path functions are smart enough to convert unicode to the file system
encoding on their own, but Db functions aren't, so provide an _encode
function in gen.db.write.py and apply it where a path is being passed to
DBEnv.open().

Also convert paths from the UI to unicode from 'utf8' rather than
sysfilesystemencoding. The latter happens to be correct most of the time
on Linux and OSX but is wrong on Windows.
2014-03-25 15:45:41 -07:00
Jérôme Rapinat
825fac0c55 7559: more accurate word for 'Undo' on french translation 2014-03-25 12:01:19 +01:00
Jérôme Rapinat
d36fdb3777 6403: minor difference around bold markup between master and gramps40 branch after merging 2014-03-25 09:40:35 +01:00
Jérôme Rapinat
f61dd9b250 typo on swedish translation 2014-03-25 08:51:59 +01:00
Igal Shapira
b12d08cf83 Updated Hebrew translations - update to latest gramps.pot and some minor fixes 2014-03-25 08:43:21 +01:00
Jérôme Rapinat
a7f6f33511 start to update NEWS 2014-03-24 16:30:44 +01:00
Helder
f6dd3c349e 7544: update Brazilian Portuguese translation 2014-03-24 12:38:28 +01:00
Luigi Toscano
591bee560a update Italian translation 2014-03-24 11:16:23 +01:00
Peter Landgren
70af0666a2 update Swedish translation 2014-03-24 11:05:23 +01:00
Paul Franklin
0edd609b92 7476: Given Name Cloud Gramplet splits up given names into words 2014-03-23 18:43:01 -07:00
John Ralls
a5a7126dc4 7332-Filename-Decoding-Error-in-Graphical-Reports
Don't encode the filename for output. Python does that for you.
2014-03-23 16:34:35 -07:00
Paul Franklin
b059ccb359 add new gvfamilylines strings to some po files 2014-03-23 12:17:50 -07:00
Munzir Taha (منذر طه)
1bc7c6506e Update Arabic translation 2014-03-23 08:37:23 +01:00
Jérôme Rapinat
bfff63d8f7 typos on french translation (spell check) 2014-03-21 18:41:11 +01:00
Pekka Valta
cc40653b97 typo on Finnish translation 2014-03-21 17:19:25 +01:00
kdau
ff5265605d 7501: Notes always say 'no data exists for note' when saving 2014-03-21 15:04:40 +01:00
Munzir Taha (منذر طه)
3812183a3e update Arabic translation, review plural forms 2014-03-21 12:21:15 +01:00
Pekka Valta
93b6206744 start to review plural form 2014-03-21 11:51:21 +01:00
Mirko Leonhaeuser
5c2d301619 update German translation 2014-03-20 20:02:20 +01:00
Zdeněk Hataš
3c39bd3a28 czech translation update 2014-03-20 16:38:27 +01:00
Pekka Valta
a555e793e6 update Finnish translation 2014-03-19 20:35:57 +01:00
Vassilii Khachaturov
10bda16d21 RU translation update 2014-03-19 15:37:29 +02:00
Vassilii Khachaturov
7627464e58 7212: vcard: only convert non-empty BDAY to text
Discovered in #7530.
1) Previously, tests expected invalid BDAY with DD-MM-YYYY format
to be ignored. Now they are wrapped with datestr (see #7212),
and that is already covered by
 test_birthday_invalid_format_converted_to_datestr
Corrected test expectations by removing the obsolete test.
2) Test expects that an empty BDAY record won't create any
event objects. Modified import code accordingly -- we used
to create an event object without date, regression in #7212.
2014-03-19 13:34:18 +02:00
Munzir Taha
ac9099434f 7539: NotRelated and Verify data dialogs appear either too small or too big 2014-03-19 09:05:16 +01:00
Jérôme Rapinat
29606b2b10 Update template and french translation, new string on gvfamilylines [37193c] 2014-03-19 08:58:49 +01:00
Paul Franklin
37193c86a0 fix translation of children count to use ngettext 2014-03-18 17:27:28 -07:00
Mirko Leonhaeuser
03c995f52f update German translation 2014-03-18 21:23:36 +01:00
Fedik
13311e0acc Update Ukrainian translation 2014-03-18 20:44:18 +02:00
Vassilii Khachaturov
25c26dcd97 7530: gen.test.constfunc_test broken in python3
Use the `in' operator rather than has_key() method to check for
environment variables in os.environ. Works on both python2 and python3.
2014-03-18 15:50:03 +02:00
John Ralls
61cdc0b54b 7519: GRAMPs unable to handle ... Path with accented characters
This replaces commit 3535f7a79f with
removing the incorrect encoding of paths with the system filesystem
encoding. Python is mostly smart enough to do that itself.

Thanks to Paul Franklin and Josip Pisoj for their help with sorting this
out.
2014-03-17 12:54:59 -07:00
John Ralls
25b4c22a30 7026: Eliminate localedir error message 2014-03-17 12:54:59 -07:00
John Ralls
1030239cce Remove some left-over diagnostic messages.
(cherry picked from commit 38aaa671cd)
2014-03-17 12:54:59 -07:00
Munzir Taha (منذر طه)
8917f7fae8 update Arabic translation 2014-03-17 19:00:37 +01:00
Jérôme Rapinat
cf0e138246 7276: [e44be0] update template and french translation 2014-03-17 18:29:18 +01:00
Paul Franklin
e44be07f62 7276: translate some punctuation marks -- partial 2014-03-17 08:00:18 -07:00
Jérôme Rapinat
644aab5db9 6369 Couldn't find a target for a mnemonic activation on confidence into Citation Editor 2014-03-16 11:04:14 +01:00
Jérôme Rapinat
513c328bbc 7342 5024: typo on change column into event selector 2014-03-15 21:46:32 +01:00
Jérôme Rapinat
421688464b typo on french translation 2014-03-15 21:32:32 +01:00
Jérôme Rapinat
3e6127ac17 [824195]: update translation template and french translation, new source selection and citation editor simplification, [3a56ed] 6854: spelling messages, [a8d78e] 7434: media viewer and missing path 2014-03-15 21:10:00 +01:00
Nick Hall
d88eedbc27 7536: Fix bug introduced with new column order 2014-03-15 19:57:58 +00:00
Nick Hall
e046804e39 Fix bug in event gramplet 2014-03-15 19:31:31 +00:00
Nick Hall
8241953765 Simplify citation editor and add source selection 2014-03-15 18:21:51 +00:00
Jérôme Rapinat
efd8a5bef6 7510: do not drag and drop more than one data into editor tabs 2014-03-15 11:12:21 +01:00
Muhammad Bashir Al-Noimi
5d90ce5ce1 update Arabic translation with contributions by Munzir Taha 2014-03-13 20:17:08 +01:00
Jérôme Rapinat
5faa635e41 7530: typo on import geneweb unit test 2014-03-13 12:01:53 +01:00
Mirko Leonhaeuser
1d58cbdd10 update German translation 2014-03-11 21:05:10 +01:00
Espen Berg
11731e81d4 Some more update of Norwegian bokmål 2014-03-11 20:36:43 +01:00
John Ralls
3535f7a79f 7519: GRAMPs unable to handle ... Path with accented characters
Much worse, actually. Gramps wasn't able to handle any non-ascii
characters in any preference setting from Python2.

repr() in Py2 effectively runs "encode(val, ascii, backslashreplace)"
on its argument, and there's no way to reconstruct the string.

(cherry picked from commit 8cbb3ef014)
2014-03-08 17:56:35 -08:00
John Ralls
3a56ed8433 6854: Spelling messages at random cause hang for a few seconds.
Improve error message to conditionally explain that there is no
dictionary if that's in fact the case; otherwise log the actual
exception string.

(cherry picked from commit 2642fc5409)
2014-03-08 16:43:39 -08:00