On Thu, Mar 24, 2005 at 02:15:35PM +0200, cobaco wrote:
> Package: po-debconf
> Version: 0.8.22
> Severity: minor
> 
> I was recently attempting to check a dutch translation I made. 
>    podebconf-display-po <po-file> 
> didn't work
> 
> two causes:
> - my environment locale wasn't set to Dutch, easily solved by calling
>  LANG=nl_BE podebconf-display-po <po-file>
> - my po-file wasn't named nl.po but shadow_nl.po, and apperently 
> podebconf-display-po needs the po-file to be called <lang-code>.po in order 
> to find the translated strings.
> 
> If possible technically you probably should always use the translated 
> strings from the po-file regardless of locale settings (I can't think of 
> any use-case where you wouldn't want this.) 
> Of course without setting LANG correctly you'll still get the environment 
> locale versions of the debconf-strings 'yes', 'no', ... (while not perfect, 
> I personally don't consider that a real problem)
> 
> If the above isn't possible it should at least be noted in the man-page (and 
> README-trans) that:
> - the po-file /must/ be named <lang-code>.po 
> - LANG /must/ be set correctly

Let me explain a little bit.  In fact podebconf-display-po convert your
PO file into a debconf templates file with English and translated fields,
and then calls debconf to display it.  All the hard work is performed by
debconf.
If your environment is not set up correctly, podebconf-display-po can
indeed not work because debconf will not display translated strings.
The rationale is that this tool is targeted at translators, and they are
supposed to have a working environment.  I do not want to modify user
environment in podebconf-display-po before calling debconf, because the
requested environment may be broken (e.g. locales have not been generated).
So I have to document this fact in the man page.

OTOH I agree that the limitation on the file name is quite boring, I
will try to remove it.  Stay tuned ;)
Thanks for your report.

Denis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to