[PATCH 3/3] Move translatable format strings into python.

David Shea dshea at redhat.com
Mon Feb 17 20:35:56 UTC 2014


On 02/17/2014 02:58 PM, Chris Lumens wrote:
>> @@ -183,7 +183,7 @@ Finish it and then click the Finish configuration button please.</property>
>>                                   <property name="visible">True</property>
>>                                   <property name="can_focus">False</property>
>>                                   <property name="halign">end</property>
>> -                                <property name="label" translatable="yes">%s is now successfully installed  and ready for you to use!
>> +                                <property name="label">%s is now successfully installed  and ready for you to use!
> No need to keep the double space in this string.
>
>> diff --git a/pyanaconda/ui/gui/hubs/progress.py b/pyanaconda/ui/gui/hubs/progress.py
>> index 9fb3412..08fc5e2 100644
>> --- a/pyanaconda/ui/gui/hubs/progress.py
>> +++ b/pyanaconda/ui/gui/hubs/progress.py
>> @@ -211,10 +211,13 @@ class ProgressHub(Hub):
>>           self._progressNotebook = self.builder.get_object("progressNotebook")
>>   
>>           lbl = self.builder.get_object("configurationLabel")
>> -        lbl.set_text(lbl.get_text() % productName)
>> +        lbl.set_text(_("%s is now successfully installed, but some configuration still needs to be done.\n"
>> +            "Finish it and then click the Finish configuration button please.") %
>> +            productName)
>>   
>>           lbl = self.builder.get_object("rebootLabel")
>> -        lbl.set_text(lbl.get_text() % productName)
>> +        lbl.set_text(_("%s is now successfully installed  and ready for you to use!\n"
> Or this one.

Fair enough. Single-spaced locally.


More information about the anaconda-patches mailing list