Changeset 2240
- Timestamp:
- 04/30/19 08:28:53 (5 years ago)
- Location:
- trunk/LATMOS-Accounts
- Files:
-
- 2 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts/MANIFEST
r2238 r2240 208 208 testdata/synchro/source/passwd 209 209 testdata/synchro/source/shadow 210 lib/LATMOS/Accounts/I18N/po/messages.pot211 lib/LATMOS/Accounts/I18N/po/fr.po210 po/messages.pot 211 po/fr.po -
trunk/LATMOS-Accounts/Makefile.PL
r2237 r2240 5 5 6 6 my @po; 7 foreach (glob(' lib/LATMOS/Accounts/I18N/po/*.po')) {7 foreach (glob('po/*.po')) { 8 8 my ($po) = $_ =~ m:([^/\.]+)\.po$:; 9 9 push (@po, $po); … … 126 126 $makepo .= 127 127 " 128 lib/LATMOS/Accounts/I18N/po/$po.po: lib/LATMOS/Accounts/I18N/po/messages.pot129 \t[ -f lib/LATMOS/Accounts/I18N/po/$po.po ] || msginit --no-translator --input=lib/LATMOS/Accounts/I18N/po/messages.pot --output= --locale=$_130 \tmsgmerge -U lib/LATMOS/Accounts/I18N/po/$po.po lib/LATMOS/Accounts/I18N/po/messages.pot131 132 lib/LATMOS/Accounts/I18N/po/$po/LC_MESSAGES/linkaccounts.mo: lib/LATMOS/Accounts/I18N/po/$po.po133 \tinstall -d lib/LATMOS/Accounts/I18N/po/$po/LC_MESSAGES128 po/$po.po: po/messages.pot 129 \t[ -f po/$po.po ] || msginit --no-translator --input=po/messages.pot --output= --locale=$_ 130 \tmsgmerge -U po/$po.po po/messages.pot 131 132 po/$po/LC_MESSAGES/linkaccounts.mo: po/$po.po 133 \tinstall -d po/$po/LC_MESSAGES 134 134 \tmsgfmt -o \$@ \$< 135 135 \n" 136 136 } 137 137 138 $makepo .= "\n\npo: " . join(' ', map { " lib/LATMOS/Accounts/I18N/po/$_.po" } @po) . "\n";139 $makepo .= "\n\nmo: " . join(' ', map { " lib/LATMOS/Accounts/I18N/po/$_/LC_MESSAGES/linkaccounts.mo" } @po) . "\n";138 $makepo .= "\n\npo: " . join(' ', map { "po/$_.po" } @po) . "\n"; 139 $makepo .= "\n\nmo: " . join(' ', map { "po/$_/LC_MESSAGES/linkaccounts.mo" } @po) . "\n"; 140 140 141 141 <<EOF; 142 .PHONY: lib/LATMOS/Accounts/I18N/po/messages.pot143 144 pot: lib/LATMOS/Accounts/I18N/po/messages.pot145 146 lib/LATMOS/Accounts/I18N/po/messages.pot:147 \tcat MANIFEST | egrep '^(lib|bin)' | xargs xgettext.pl -o lib/LATMOS/Accounts/I18N/po/messages.pot142 .PHONY: po/messages.pot 143 144 pot: po/messages.pot 145 146 po/messages.pot: 147 \tcat MANIFEST | egrep '^(lib|bin)' | xargs xgettext.pl -o po/messages.pot 148 148 149 149 $makepo … … 235 235 foreach (@po) { 236 236 $section .= "\tinstall -d \$(DESTDIR)\$(LOCALEDIR)/$_/LC_MESSAGES\n"; 237 $section .= "\tinstall lib/LATMOS/Accounts/I18N/po/$_/LC_MESSAGES/linkaccounts.mo \$(DESTDIR)\$(LOCALEDIR)/$_/LC_MESSAGES/linkaccounts.mo\n";237 $section .= "\tinstall po/$_/LC_MESSAGES/linkaccounts.mo \$(DESTDIR)\$(LOCALEDIR)/$_/LC_MESSAGES/linkaccounts.mo\n"; 238 238 } 239 239 $section .= "\n"; -
trunk/LATMOS-Accounts/lib/LATMOS/Accounts/I18N.pm
r2237 r2240 26 26 if (!$init) { 27 27 28 my $Path = __FILE__; 29 $Path =~ s/\.pm$//; 30 $Path .= '/po'; 31 if (-d $Path) { 32 Locale::gettext::bindtextdomain('linkaccounts', $Path) 28 if (-d 'po') { 29 Locale::gettext::bindtextdomain('linkaccounts', 'po') 33 30 } 34 31 Locale::gettext::bind_textdomain_codeset('linkaccounts', 'UTF-8');
Note: See TracChangeset
for help on using the changeset viewer.