postiffm / bibledit-desktop

Desktop version of Bibledit
GNU General Public License v3.0
4 stars 6 forks source link

Correct minor error in the english text #117

Closed LAfricain closed 5 years ago

LAfricain commented 5 years ago

In the list of the books, the book number 0 is called ;**EMPTY ID=0**:

src/bookdata.cpp:38:  "**EMPTY ID=0**",             "",        "",     "",     "",     "",       "",                 0, btUnknown,  false}, {
src/books.cpp:392:  books_table[0].localname = _("**EMPTY ID=0**");   // no abbreviation for this

What the corresponding book? Probably the "A7 | INT | Introduction Matter" of the usfm3 book identification. And during the checks it displays gtk-cancel, instead of Cancel:

templates/gtkbuilder.progressdialog.xml:36:            <property name="label" translatable="yes">gtk-cancel</property>

Idem for gtk-open, should be only "Open":

src/assistantbackup.cpp:131:  image1 = gtk_image_new_from_stock (_("gtk-open"), GTK_ICON_SIZE_BUTTON);

If you agree, I do this corrections.

postiffm commented 5 years ago

I put books_table[0] as empty to catch errors in the code. It is important to my design and should NOT be changed. A7 would be a larger number, like 106. But we don't support USFM 3.0 yet. So that is a bridge that we will cross in the future, but not now.

"gtk-open" is a keyword for the GTK library, so _("gtk-open") is an error. It should just say "gtk-open"

Similar with gtk-cancel. It should not be translatable.

LAfricain commented 5 years ago

OK then just unlocalised the tree lines. Or for EMPTY ID=0 maybe a blank place will be better.

postiffm commented 5 years ago

I would be happy to integrate a pull request that fixes just these bugs.

LAfricain commented 5 years ago

Ok let me do it.

LAfricain commented 5 years ago

Gtk-cancel in templates/gtkbuilder.progressdialog.xml need I to remove the translatable entry or Change for Cancel? Because it is a xml file?

postiffm commented 5 years ago

Now that you say that...I think since it is a label, it should be translatable, and it should say "Cancel" and not gtk-cancel.

Is it true that the cancel button has a label that shows the text gtk-cancel on it? I have never seen this that I remember.

LAfricain commented 5 years ago

gtk-cancel

LAfricain commented 5 years ago

Corrected by #118