Skip to content

Commit

Permalink
improve message catalogue handling/creation
Browse files Browse the repository at this point in the history
  • Loading branch information
osm-ToniE committed May 4, 2019
1 parent 77f6575 commit 3b59302
Show file tree
Hide file tree
Showing 7 changed files with 511 additions and 502 deletions.
3 changes: 2 additions & 1 deletion bin/ptna-routes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,8 @@
if ( scalar(@relation_ids) ) {

printTableInitialization( 'ref', 'relation', 'type', 'route_type', 'name', 'network', 'operator', 'from', 'via', 'to', 'PTv', 'issues', 'notes' );


# xgettext: This section will list all routes which could not be clearly assigned because the combination of "ref;type" appears more than once and information like 'operator', 'from' and 'to' is missing
printHeader( gettext('Not clearly assigned routes'), 1, 'unassigned' );
printHintUnassignedRelations();
printTableHeader();
Expand Down
Binary file modified locale/de/LC_MESSAGES/ptna.mo
Binary file not shown.
Binary file modified locale/fr/LC_MESSAGES/ptna.mo
Binary file not shown.
11 changes: 8 additions & 3 deletions po/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ compile:

up update: $(LOCALIZABLE)
@echo Gathering translations...
@xgettext -L Perl \
-kgettext -kngettext \
--from-code utf-8 -o $(TEMPLATE) $(LOCALIZABLE)
@xgettext --language Perl \
--keyword=gettext --keyword=ngettext \
--from-code utf-8 \
--add-comments=xgettext \
--package-name=ptna \
--package-version=1.0.0 \
--msgid-bugs-address='osm-ToniE@web.de' \
--output $(TEMPLATE) $(LOCALIZABLE)
@echo Merging...
@for i in $$(ls *.po); do \
cp $$i $$i.save; \
Expand Down
Loading

0 comments on commit 3b59302

Please sign in to comment.