Skip to content

Commit

Permalink
fix: Hide the translated text: translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhldr committed Sep 1, 2024
1 parent fca9602 commit 7a7abf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions data/resources/lfy.cmb
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
<object>
(1,55,"AdwApplicationWindow","TranslateWindow",None,None,None,None,None,None,None),
(1,87,"(menu)","primary_menu",None,None,None,None,None,None,None),
(1,88,"(section)",None,87,None,None,None,2,None,None),
(1,88,"(section)","st_pref",87,None,None,None,2,None,None),
(1,89,"(item)","win_show-help-overlay",88,None,None,None,1,None,None),
(1,90,"(item)","app_preferences",88,None,None,None,None,None,None),
(1,91,"(item)","app_about",88,None,None,None,2,None,None),
(1,112,"(section)",None,87,None,None,None,None,None,None),
(1,112,"(section)","st_theme",87,None,None,None,None,None,None),
(1,113,"(item)","theme",112,None,None,None,-1,None,None),
(1,132,"AdwToastOverlay","ato_translate",55,None,None,None,-1,None,None),
(1,133,"AdwToolbarView",None,132,None,None,None,None,None,None),
(1,147,"AdwHeaderBar","header_bar",133,None,"top",None,None,None,None),
(1,148,"GtkMenuButton","menu_btn",147,None,"start",None,None,None,None),
(1,149,"(section)",None,87,None,None,None,1,None,None),
(1,149,"(section)","st_translate_now",87,None,None,None,1,None,None),
(1,150,"(item)","translate_now",149,None,None,None,None,None,None),
(1,151,"GtkPaned","gp_translate",133,None,None,None,-1,None,None),
(1,166,"GtkBox",None,151,None,None,None,1,None,None),
Expand All @@ -39,7 +39,7 @@
(1,176,"GtkButton","btn_translate",169,None,None,None,6,None,None),
(1,177,"GtkScrolledWindow",None,151,None,None,None,2,None,None),
(1,178,"GtkTextView","tv_to",177,None,None,None,None,None,None),
(1,182,"(section)",None,87,None,None,None,3,None,None),
(1,182,"(section)","st_gp",87,None,None,None,3,None,None),
(1,183,"(item)","gp_reset_restore",182,None,None,None,None,None,None),
(1,184,"(item)","gp_up",182,None,None,None,1,None,None),
(1,185,"(item)","gp_down",182,None,None,None,2,None,None),
Expand Down Expand Up @@ -161,7 +161,7 @@
(1,184,"(item)","action","app.gp_up",None,None,None,None,None,None,None,None,None),
(1,184,"(item)","label","Hide the original text",1,None,None,None,None,None,None,None,None),
(1,185,"(item)","action","app.gp_down",None,None,None,None,None,None,None,None,None),
(1,185,"(item)","label","Hide the translated text",None,None,None,None,None,None,None,None,None),
(1,185,"(item)","label","Hide the translated text",1,None,None,None,None,None,None,None,None),
(2,5,"GtkWidget","valign","start",None,None,None,None,None,None,None,None,None),
(2,15,"AdwActionRow","subtitle","setup API Key for translation Server, click on the right to the details",1,None,None,None,None,None,None,None,None),
(2,15,"AdwActionRow","subtitle-lines","3",None,None,None,None,None,None,None,None,None),
Expand Down
10 changes: 5 additions & 5 deletions data/resources/translate.ui
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,18 @@
<property name="title" translatable="yes">lfy</property>
</template>
<menu id="primary_menu">
<section>
<section id="st_theme">
<item>
<attribute name="custom">theme</attribute>
</item>
</section>
<section>
<section id="st_translate_now">
<item>
<attribute name="action">app.copy2translate</attribute>
<attribute name="label" translatable="yes">Copy to translate</attribute>
</item>
</section>
<section>
<section id="st_pref">
<item>
<attribute name="action">app.preferences</attribute>
<attribute name="label" translatable="yes">_Preferences</attribute>
Expand All @@ -154,7 +154,7 @@
<attribute name="label" translatable="yes">_About lfy</attribute>
</item>
</section>
<section>
<section id="st_gp">
<item>
<attribute name="action">app.gp_reset_restore</attribute>
<attribute name="label" translatable="yes">Reset/Restore UI</attribute>
Expand All @@ -165,7 +165,7 @@
</item>
<item>
<attribute name="action">app.gp_down</attribute>
<attribute name="label">Hide the translated text</attribute>
<attribute name="label" translatable="yes">Hide the translated text</attribute>
</item>
</section>
</menu>
Expand Down

0 comments on commit 7a7abf9

Please sign in to comment.