Is <property name="format"> localizable?
caolanm at redhat.com
Fri Mar 21 10:05:34 PDT 2014
On Thu, 2014-03-20 at 21:43 +0100, Andras Timar wrote:
> Hi Caolan,
> In sd/uiconfig/simpress/ui/slidetransitionspanel.ui I found a new
> property type: <property name="format">sec</property>. On UI it shows
> as 0.00sec. I wonder, if it is translatable, and if not, how can we
> make it translatable. I'm asking, because a few lines earlier there
> was <object class="GtkSpinButton" id="auto_after_value:0sec">, which
> suggests that "sec" is hardcoded.
How about now after 3b1cca8c547ce53b2af29b3edecc22c7694a0621 ?
The "format" attribute was an idea I was playing around with at the
start of widget layout but abandoned in favor of the :unit hack, but its
use crept back in with 78ff9d90f2a74792c437087ede11559c111c5c98. AFAICS
that is the only .ui that used the format attribute so I've removed
support for the attribute now.
The unit hack (unlike format) detects :sec and set FUNIT_SECOND and that
should go through the correct "get seconds translation" route already.
More information about the LibreOffice