Re: [Powertop] PowerTOP: _("Cannot load from file")
Chris Ferron <chris.e.ferron at linux.intel.com> Thu, 31 May 2012 08:42:40 -0700
| Newsgroups | dev.linux.lists.powertop |
|---|---|
| Message-ID | <[email protected]> |
On 05/30/2012 09:53 PM, Németh Márton wrote:
> Hi Chris,
>
> I have seen in commit 0e9374d27bfa51b885ee3fe69fbb3b12bdae3600 that
> the last space of the "Cannot load from file " was removed. This results
> even in English the following output:
>
> Cannot load from file/var/cache/powertop/saved_parameters.powertop
>
> One solution would be something like this:
>
> cout<< _("Cannot load from file")<< " "<< pathname<< "\n";
Good input thank you. I am still learning about the difficulty's in
translation on internationalization.
I will make some adjustments from your input.
Thanks
-Chris
> However, in Hungarian this sentence is difficult to translate because of
> the word order. For example the natural translation of the following
> English sentence would be:
>
> English: Cannot load from file foo.bar
> Hungarian: Nem lehetett a foo.bar fájlból betölteni
>
> As you can see in this case it would be better to use the %s format string
> for printing pathname because this gives better flexibility for the translator
> to place the pathname string in natural place in a translated sentence.
>
> Regards,
>
> Márton Németh
>