mono / gtk-sharp

Gtk# is a Mono/.NET binding to the cross platform Gtk+ GUI toolkit and the foundation of most GUI apps built with Mono
http://www.mono-project.com/GtkSharp
Other
426 stars 141 forks source link

GTK# GUI Designer doesn't translate Tooltip #239

Open cwkuehl opened 5 years ago

cwkuehl commented 5 years ago

I' m using Monodevelop 7.5 with gtk-sharp-2.0 2.12.45 on Ubuntu 18.04.

When designing a widget with translatable tooltip:

      <widget class="Gtk.CheckButton" id="checkbutton1">
        <property name="MemberName" />
        <property name="Tooltip" translatable="yes">AM000.save.tt</property>
        <property name="CanFocus">True</property>
        <property name="Label" translatable="yes">AM000.save</property>
        <property name="DrawIndicator">True</property>
        <property name="HasLabel">True</property>
        <property name="UseUnderline">True</property>
      </widget>

the output cs file is not translatable for the tooltip:

this.checkbutton1 = new global::Gtk.CheckButton(); this.checkbutton1.TooltipMarkup = "AM000.save.tt"; this.checkbutton1.CanFocus = true; this.checkbutton1.Name = "checkbutton1"; this.checkbutton1.Label = global::Mono.Unix.Catalog.GetString("AM000.save"); this.checkbutton1.DrawIndicator = true; this.checkbutton1.UseUnderline = true;