-
Notifications
You must be signed in to change notification settings - Fork 590
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
Add templates to Config Files menu #3396
base: master
Are you sure you want to change the base?
Conversation
Move config_files_menu to ui_widgets.
I've split out #3450 which should be merged first. |
I guess it saves users explicitly copying template files to the user config directory before editing and maybe reduces the incidence of them editing the system copies. But most templates distributed with Geany are pretty ummm basic, so I'm not sure how often they are used as a basis for user templates. Note the #3450 changes still included, needs to be removed, especially if #3450 is not needed. |
f5a7aa5
to
abfaf3b
Compare
Overall the PR looks good to me. |
This touches strings (doesn't it?) and we're in string freeze so I'm afraid it's too late now. |
@kugel- what bad thing would happen if this was merged? the strings here would still lookup the correct translations, right? |
Don't strings have file/line in their lookup, so "Templates" and "Files" menu items would likely show untranslated until updated? Also I don't see those referenced in the documentation modifications? |
How do you think so? AFAIK the lookup is made solely on the string itself. Either it matches or not. Before further speculating, just test it. Check out the branch, run
I don't understand what does this mean? :). |
Oh, I thought it was possible to have the same string at different places in the program with differing translations? If not by file/line how is that done? (translation newby question) Did I say it would break anything? Just that the strings would be untranslated, and even if all cases of the same string have the same translations, do "Templates" or "Files" occur in the UI anywhere already? I'm not sure what the point of running update PO is, we don't do that for each PR. That was done at string freeze and will not have these strings in it, so they will not be translated thats all.
There are changes to |
@@ -3973,8 +3973,8 @@ On Windows 7 and above you most likely will find it at: | |||
``C:\users\UserName\Roaming\geany`` | |||
|
|||
|
|||
Tools menu items | |||
---------------- | |||
Configuration files menu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While this section is currently mainly about the Configuration files
menu item, I think we could leave the section title as is. We might add further documentation for other Tools
menu items here as well, so the more generic section title would serve as a container and so we could add a sub heading for Configuration files
.
Though I don't have a strong opinion on that.
AFAIK this is not possible. If so, then there is some special syntax or so. Usually, the lookup is done based only on the string.
As you can see the translation item has the multiple code occurrences listed as comment. Maybe @frlan knows better.
I meant "break" in terms of "new untranslated strings which would break the string freeze". Sorry, it wasn't the best wording.
Yes, see the example above.
I suggested this so one can test whether the added strings here will be translated or not to stop us speculating whether or not it will have an effect.
This isn't the case, see above.
To me the changed parts in the documentation are related to the feature. |
Long story short about the translation strings: this is safe to merge, it will NOT add new untranslated strings. |
After some googling (while also watching renovation TV so it was a bit slow :-) I found that:
That is different to the commercial system I have used in the past. As I said I don't know much about gettext but I have learned some more. "learn a new thing every day" they say, so I can take the rest of the day off ... all 1.25 hours.
Because I am not at home sitting in front of my development machine to be able to do it.
Ok, so is the actual change ok? If so you and @techee are listed as reviewers and can approve it. |
Tested and works fine. Maybe we could squash some of the commits? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fairly useful and simple enough 👍
Apart from my inline comments, LGTM and WFM.
gtk_container_add(GTK_CONTAINER(menu), item); | ||
gtk_menu_reorder_child(GTK_MENU(menu), item, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gtk_container_add(GTK_CONTAINER(menu), item); | |
gtk_menu_reorder_child(GTK_MENU(menu), item, 0); | |
gtk_menu_shell_prepend(GTK_MENU_SHELL(menu), item); |
/* put entries with submenus at the end of the menu */ | ||
/* put entries with submenus at the start of the menu */ | ||
if (gtk_menu_item_get_submenu(item_a) && !gtk_menu_item_get_submenu(item_b)) | ||
return 1; | ||
else if (!gtk_menu_item_get_submenu(item_a) && gtk_menu_item_get_submenu(item_b)) | ||
return -1; | ||
else if (!gtk_menu_item_get_submenu(item_a) && gtk_menu_item_get_submenu(item_b)) | ||
return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This confused me because it's already in #3397, so it's actually not part of this PR anymore. But 👍 anyway.
Should we postpone? Review the comments and merge? |
Postponing as it's a bit late now. Should probably be merged soon after release though. |
Also fix the first line of geany.css being uncommented when opening the config file through the menus.