Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Spaces after dots in translatable strings #769

Merged
merged 1 commit into from Aug 31, 2018
Merged

FIX: Spaces after dots in translatable strings #769

merged 1 commit into from Aug 31, 2018

Conversation

Skif-off
Copy link
Contributor

See diff.

@frlan
Copy link
Member

frlan commented Aug 31, 2018

Wouldn't it be better to move the spaces into line before?

Copy link
Member

@b4n b4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned, this would lead to not having any space between the dot and the next word, which is inappropriate.

@@ -1949,7 +1949,7 @@ plugin_configure(GtkDialog * dialog)
gtk_widget_set_tooltip_text(widgets.cb_editor_menu_entries,
_("Whether menu for this plugin are getting placed either "
"inside tools menu or directly inside Geany's menubar."
"Will take in account after next start of GeanyVC"));
" Will take in account after next start of GeanyVC"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not appropriate: there should be a space between the dot and the next word, and the C string syntax "xxx" "yyy" is equivalent to "xxxyyy", not "xxx yyy". If you really want to move the space, place it after the dot on the previous line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forget my comment, it was absurd, I read the diff the wrong way around.

@@ -444,7 +444,7 @@ gboolean dialogs_workbench_settings(WORKBENCH *workbench)
gtk_widget_set_tooltip_text(w_enable_live_update,
_("If the option is activated (default), then the list of files and the sidebar"
" will be updated automatically if a file or directory is created, removed or renamed."
"A manual re-scan is not required if the option is enabled."));
" A manual re-scan is not required if the option is enabled."));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here.

Copy link
Member

@b4n b4n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my bad, I didn't see you were adding the missing space, sorry -- I must still be half-asleep somehow.
Anyway, I like it better like that 👍

@@ -443,7 +443,7 @@ gboolean dialogs_workbench_settings(WORKBENCH *workbench)
ui_table_add_row(GTK_TABLE(table), 1, w_enable_live_update, NULL);
gtk_widget_set_tooltip_text(w_enable_live_update,
_("If the option is activated (default), then the list of files and the sidebar"
" will be updated automatically if a file or directory is created, removed or renamed."
" will be updated automatically if a file or directory is created, removed or renamed. "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally the leading space here would also be on the previous line, but that's OK with this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ops, merged.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did see the leading space to late. Will change it directly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a problem as there are many strings like that in the workbench plugin

@Skif-off
Copy link
Contributor Author

Done (fix + squash).

Sorry, I saw strings with space in beginning below/above and maked it so (1, 2, 3).

@frlan frlan merged commit 71b585b into geany:master Aug 31, 2018
@Skif-off Skif-off deleted the typos-transl branch August 31, 2018 13:02
@b4n
Copy link
Member

b4n commented Aug 31, 2018

I also updated the strings in the translations to include the space, as it doesn't have to be reviewed by translators (I made sure that the translations didn't have the same dot issue, and they don't): 65475da

lpaulsen93 added a commit to lpaulsen93/geany that referenced this pull request Sep 1, 2018
@lpaulsen93
Copy link
Contributor

I added a small section "Translation" to geany's HACKING file to prevent others from making the same fault as me.

lpaulsen93 added a commit to lpaulsen93/geany that referenced this pull request Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants