pcb

Menu items internationalization

Bug #1113758 reported by Sergey Alyoshin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Undecided
Unassigned

Bug Description

Menu items internationalization.

Depends on:
https://bugs.launchpad.net/pcb/+bug/913458

Tags: i18n
Revision history for this message
Sergey Alyoshin (alyoshin-s) wrote :
Changed in pcb:
status: New → Confirmed
Revision history for this message
Bert Timmerman (bert-timmerman) wrote :

Hi Vladimir,

One quick question:

Does the line

res_val = _(sub_res->v[j].value);

contain a translatable value during compile-time ?

Kind regards,

Bert Timmeman.

Revision history for this message
Vladimir Zhbanov (vzhbanov) wrote :

Hi Bert,
On Mon, Jan 20, 2014 at 07:40:44PM -0000, Bert Timmerman wrote:
> Does the line
>
> res_val = _(sub_res->v[j].value);
>
> contain a translatable value during compile-time ?

No, if I understand it correctly, and simplifying a bit, the _()
command is just an alias for the gettext() function (see, e.g.
global.h in the pcb repository) which takes initial English
strings and searches for their counterparts for current locale in
an appropriate *.gmo file compiled from one of the *.po files. The
strings for translation are extracted beforehand by xgettext
program into a *.pot file which will be the template for all the
*.po files.

The basic info on this you may find in 'info gettext', sections 1.4
and 1.5.

Changed in pcb:
status: Confirmed → Fix Committed
Changed in pcb:
status: Fix Committed → Fix Released
Changed in pcb:
milestone: none → pcb-20140316
Revision history for this message
gpleda.org commit robot (gpleda-launchpad-robot) wrote :

Bug was fixed by a commit
git master commit 5972217e360799ee977a6bf9d5f6f4d4789dbdb1
http://git.geda-project.org/pcb/commit/?id=5972217e360799ee977a6bf9d5f6f4d4789dbdb1

commit 5972217e360799ee977a6bf9d5f6f4d4789dbdb1
Author: Sergey Alyoshin <email address hidden>
Commit: Vladimir Zhbanov <email address hidden>

    Menu items i18n

    This adds i18n for gtk menus

    Closes-bug: lp-1113758

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.