Holiday translation

classic Classic list List threaded Threaded
7 messages Options
hou
Reply | Threaded
Open this post in threaded view
|

Holiday translation

hou
Hello,

I translated slovak hodiays inside gramps/plugins/lib/holidays.xml.in file (according to this article: https://www.gramps-project.org/wiki/index.php?title=Calendar_tools_holidays). However, building gramps (python setup.py build, python setup.py install) did not update holidays.xml file with the new holiday entries. It did not appear in the GUI either. Should I also put it in the holiday.xml manually or is there something else I should do?

Thanks,
Ondrej Krc-Jediny

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Holiday translation

Josip
Dana 29.6.2014. 15:59, [hidden email] je napisao:
> Hello,
>
> I translated slovak hodiays inside gramps/plugins/lib/holidays.xml.in file (according to this article: https://www.gramps-project.org/wiki/index.php?title=Calendar_tools_holidays). However, building gramps (python setup.py build, python setup.py install) did not update holidays.xml file with the new holiday entries. It did not appear in the GUI either. Should I also put it in the holiday.xml manually or is there something else I should do?
>
> Thanks,
> Ondrej Krc-Jediny
>

1. You must have intltool installed
2. You have to delete holidays.xml if it is builded allready.
    If you build from git just do "git clean -dxf"


--
Josip

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

4.1.1 issue on win 7 professional

Peter Landgren
Josip,

Installed GrampsAIO-4.1.1 on a new pc with win 7 64 bit professional
Works very well on another pc win 7 64 with home premium

Peter


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Med ensamr�tt.

C:\Users\Anna>cd "C:\Program Files (x86)\GrampsAIO-4.1.1\bin"

C:\Program Files (x86)\GrampsAIO-4.1.1\bin>"C:\Program Files
(x86)\GrampsAIO-4.1.1\bin\gramps.exe"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Program Files
(x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/grampsapp.py",
line 52, in <module>
from .gen.const import APP_GRAMPS, USER_DIRLIST, HOME_DIR
File "C:\Program Files
(x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/const.py",
line 185, in <module>
GRAMPS_LOCALE = GrampsLocale(localedir=_resources.locale_dir)
File "C:\Program Files
(x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
line 553, in __init__
self._GrampsLocale__init_first_instance()
File "C:\Program Files
(x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
line 401, in __init_first_instance
self._win_init_environment()
File "C:\Program Files
(x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
line 203, in _win_init_environment
locale.setlocale(locale.LC_ALL, '')
File "C:\Program Files (x86)\GrampsAIO-4.1.1\lib\python2.7/locale.py",
line 547, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

C:\Program Files (x86)\GrampsAIO-4.1.1\bin>

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: 4.1.1 issue on win 7 professional

Peter Landgren
Running with the "debug icon" works

/Peter

> Josip,
>
> Installed GrampsAIO-4.1.1 on a new pc with win 7 64 bit professional
> Works very well on another pc win 7 64 with home premium
>
> Peter
>
>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. Med ensamr�tt.
>
> C:\Users\Anna>cd "C:\Program Files (x86)\GrampsAIO-4.1.1\bin"
>
> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>"C:\Program Files
> (x86)\GrampsAIO-4.1.1\bin\gramps.exe"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/grampsapp.py",
> line 52, in <module>
> from .gen.const import APP_GRAMPS, USER_DIRLIST, HOME_DIR
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/const.py",
> line 185, in <module>
> GRAMPS_LOCALE = GrampsLocale(localedir=_resources.locale_dir)
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 553, in __init__
> self._GrampsLocale__init_first_instance()
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 401, in __init_first_instance
> self._win_init_environment()
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 203, in _win_init_environment
> locale.setlocale(locale.LC_ALL, '')
> File "C:\Program Files (x86)\GrampsAIO-4.1.1\lib\python2.7/locale.py",
> line 547, in setlocale
> return _setlocale(category, locale)
> locale.Error: unsupported locale setting
>
> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> Gramps-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-devel


--
Peter Landgren
Talken Hagen
671 94  Brunskog
0570-530 21
070-345 0964


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: 4.1.1 issue on win 7 professional

Josip
In reply to this post by Peter Landgren
Dana 30.6.2014. 16:47, Peter Landgren je napisao:

> Josip,
>
> Installed GrampsAIO-4.1.1 on a new pc with win 7 64 bit professional
> Works very well on another pc win 7 64 with home premium
>
> Peter
>
>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation. Med ensamr�tt.
>
> C:\Users\Anna>cd "C:\Program Files (x86)\GrampsAIO-4.1.1\bin"
>
> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>"C:\Program Files
> (x86)\GrampsAIO-4.1.1\bin\gramps.exe"

You are already in AIO\bin folder so there is no need to again use full
path, just type "gramps" there.

There is another testing gramps launcher in AIO root folder (it is not
same as one in bin folder) that can be used outside AIO\bin folder. In
that way AIO can be put in environmental variable PATH without
interfering with the rest of system and you can start Gramps from
everywhere by just typing "gramps".
Without changing PATH you can run it like:
C:\Users\Anna>"C:\Program Files (x86)\GrampsAIO-4.1.1\gramps"

> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/grampsapp.py",
> line 52, in <module>
> from .gen.const import APP_GRAMPS, USER_DIRLIST, HOME_DIR
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/const.py",
> line 185, in <module>
> GRAMPS_LOCALE = GrampsLocale(localedir=_resources.locale_dir)
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 553, in __init__
> self._GrampsLocale__init_first_instance()
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 401, in __init_first_instance
> self._win_init_environment()
> File "C:\Program Files
> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
> line 203, in _win_init_environment
> locale.setlocale(locale.LC_ALL, '')
> File "C:\Program Files (x86)\GrampsAIO-4.1.1\lib\python2.7/locale.py",
> line 547, in setlocale
> return _setlocale(category, locale)
> locale.Error: unsupported locale setting
>
> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>

What locale system is?
There was thread about it (or it was offline) when support for locale
isn't installed.

Python 2.7.6 (default, Dec 27 2013, 03:26:39)
[GCC 4.7.3 (32 bit)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> import locale
 >>> help(locale.setlocale)
setlocale(category, locale=None)
     Set the locale for the given category.  The locale can be
     a string, an iterable of two strings (language code and encoding),
     or None.

So try to replace "grampslocale.py" line 203 to:
locale.setlocale(locale.LC_ALL, None)

grampsd.exe is for debugging and will always use English locale.

--
Josip

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: 4.1.1 issue on win 7 professional

Peter Landgren
See comments below.

> Dana 30.6.2014. 16:47, Peter Landgren je napisao:
>> Josip,
>>
>> Installed GrampsAIO-4.1.1 on a new pc with win 7 64 bit professional
>> Works very well on another pc win 7 64 with home premium
>>
>> Peter
>>
>>
>> Microsoft Windows [Version 6.1.7601]
>> Copyright (c) 2009 Microsoft Corporation. Med ensamr�tt.
>>
>> C:\Users\Anna>cd "C:\Program Files (x86)\GrampsAIO-4.1.1\bin"
>>
>> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>"C:\Program Files
>> (x86)\GrampsAIO-4.1.1\bin\gramps.exe"
>
> You are already in AIO\bin folder so there is no need to again use
> full path, just type "gramps" there.
>
OK

> There is another testing gramps launcher in AIO root folder (it is not
> same as one in bin folder) that can be used outside AIO\bin folder. In
> that way AIO can be put in environmental variable PATH without
> interfering with the rest of system and you can start Gramps from
> everywhere by just typing "gramps".
> Without changing PATH you can run it like:
> C:\Users\Anna>"C:\Program Files (x86)\GrampsAIO-4.1.1\gramps"
OK.

>
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "C:\Program Files
>> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/grampsapp.py",
>> line 52, in <module>
>> from .gen.const import APP_GRAMPS, USER_DIRLIST, HOME_DIR
>> File "C:\Program Files
>> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/const.py",
>> line 185, in <module>
>> GRAMPS_LOCALE = GrampsLocale(localedir=_resources.locale_dir)
>> File "C:\Program Files
>> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
>>
>> line 553, in __init__
>> self._GrampsLocale__init_first_instance()
>> File "C:\Program Files
>> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
>>
>> line 401, in __init_first_instance
>> self._win_init_environment()
>> File "C:\Program Files
>> (x86)\GrampsAIO-4.1.1\lib\python2.7\site-packages/gramps/gen/utils/grampslocale.py",
>>
>> line 203, in _win_init_environment
>> locale.setlocale(locale.LC_ALL, '')
>> File "C:\Program Files (x86)\GrampsAIO-4.1.1\lib\python2.7/locale.py",
>> line 547, in setlocale
>> return _setlocale(category, locale)
>> locale.Error: unsupported locale setting
>>
>> C:\Program Files (x86)\GrampsAIO-4.1.1\bin>
The value of "category" is 0, and of "locale" an empty string.

>
> What locale system is?
> There was thread about it (or it was offline) when support for locale
> isn't installed.
>
> Python 2.7.6 (default, Dec 27 2013, 03:26:39)
> [GCC 4.7.3 (32 bit)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import locale
> >>> help(locale.setlocale)
> setlocale(category, locale=None)
>     Set the locale for the given category.  The locale can be
>     a string, an iterable of two strings (language code and encoding),
>     or None.
I get the same result.

>
> So try to replace "grampslocale.py" line 203 to:
> locale.setlocale(locale.LC_ALL, None)
>
Gramps starts, but in English.

> grampsd.exe is for debugging and will always use English locale.
>
I noticed that.

/Peter

--
Peter Landgren
Talken Hagen
671 94  Brunskog
0570-530 21
070-345 0964


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: 4.1.1 issue on win 7 pro and professional and win 8 pro

Peter Landgren
Hi,


A quick fix for this is to change in the file
C:\Program Files (x86)\GrampsAIO-4.1.1\lib\python2.7\locale.py
line 547
     return _setlocale(category, "locale")

changes to:
     return _setlocale(category, "Swedish_Sweden.1252")

I have no real idea why, but it looks like locale is an empty string.



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel