[Rt-devel] a patch for rt-message-catalog to translate local/ stuff; usage added

Ruslan Zakirov ruz at bestpractical.com
Wed Mar 16 04:41:29 EDT 2011


It's better to split usage part from other things. Move usage docs
into POD documentation and use Pod::Usage. Look into
sbin/rt-setup-database for example.

About main change. What would happen with plugins' strings and po files?

Code looks good, however if I want to translate local customizations
then I want the following:

* extract all strings
* generate local po file prefering its values
* shrink generated local po file so it contain only differences and
strings that are no in main po file and plugins' po files

As far as I can see you solve first and second things. The last one
would be cool to have as well.

2011/3/16 Václav Ovsík <vaclav.ovsik at i.cz>:
> Hi,
> I have a wish please. It could be fine to have chance to use
> localizations for customizations under local/ directory. That is
> extracting strings from local/ tree and updating local/po/XX.po
> lexicons. A patch for 3.8-trunk branch is attached. The patch also
> solves to not overwrite local translations written into local/po/XX.po
> while merging from Rosetta. The patch adds usage subroutine missing in
> the rt-message-catalog.
>
> I can do now:
>
> rt2:/opt/RT# ./sbin/rt-message-catalog extract local/po/*.po
> Looking at bin/mason_handler.svc
> Looking at bin/webmux.pl
> Looking at bin/rt-remind
> ...
> Looking at etc/RT_SiteConfig.pm
> Looking at etc/schema.mysql-4.1
> Looking at etc/acl.Oracle
> Looking at etc/schema.Sybase
> Looking at etc/RT_Config.pm
> Updating cs...
>
> or
>
> rt2:/opt/RT# sbin/rt-message-catalog rosetta /home/zito/migration/translation/ local/po/*.po
> /home/zito/migration/translation//rt_rt-cs.po -> local/po/cs.po
> Looking at bin/mason_handler.svc
> Looking at bin/webmux.pl
> Looking at bin/rt-remind
> ...
> Looking at etc/schema.mysql-4.1
> Looking at etc/acl.Oracle
> Looking at etc/schema.Sybase
> Looking at etc/RT_Config.pm
> Updating cs...
>
> Can someone review the patch please?
> Best Regards
> --
> Zito
>
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
>



-- 
Best regards, Ruslan.


More information about the rt-devel mailing list