Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 12, 2018
It's otherwise hard to translate if you don't know/see
the GUI of Slayer.

Using a pop-up menu or spinner widget restricts the freedom
of translation, as the widget always has to be at the end.
In German, e.g. it'd otherwise be:
   "Fenster in Arbeitsfläche '3' öffnen."
Adding a ":" ensures the widget is after it, at the end of
the line.
Showing with 12 additions and 5 deletions.
  1. +12 −5 src/SettingsWindow.cpp
@@ -17,10 +17,16 @@
SettingsWindow::SettingsWindow(const char *title)
: BWindow(BRect(300,300,400,400), title, B_TITLED_WINDOW_LOOK, B_MODAL_APP_WINDOW_FEEL, B_NOT_ZOOMABLE | B_NOT_RESIZABLE |B_AUTO_UPDATE_SIZE_LIMITS )
{
current_workspace = new BRadioButton("SettingsCurrentWorkspace", B_TRANSLATE("Open window in current workspace"), new BMessage(IE_SETTINGSWINDOW_SETTINGSCURRENTWORKSPACE));
all_workspaces = new BRadioButton("SettingsAllWorkspaces", B_TRANSLATE("Open window in all workspaces"), new BMessage(IE_SETTINGSWINDOW_SETTINGSALLWORKSPACES));
saved_workspace = new BRadioButton("SettingsSavedWorkspace", B_TRANSLATE("Open window in workspace"), new BMessage(IE_SETTINGSWINDOW_SETTINGSSAVEDWORKSPACE));

current_workspace = new BRadioButton("SettingsCurrentWorkspace",
B_TRANSLATE("Open window in current workspace"),
new BMessage(IE_SETTINGSWINDOW_SETTINGSCURRENTWORKSPACE));
all_workspaces = new BRadioButton("SettingsAllWorkspaces",
B_TRANSLATE("Open window in all workspaces"),
new BMessage(IE_SETTINGSWINDOW_SETTINGSALLWORKSPACES));
saved_workspace = new BRadioButton("SettingsSavedWorkspace",
B_TRANSLATE_COMMENT("Open window in workspace:",
"After 'workspace' follows a popup menu with the workspace number"),
new BMessage(IE_SETTINGSWINDOW_SETTINGSSAVEDWORKSPACE));

BPopUpMenu* workspaces_list = new BPopUpMenu("Workspace");

@@ -49,7 +55,8 @@ SettingsWindow::SettingsWindow(const char *title)
BBox* top = new BBox("top");
top->AddChild(workspaceBox->View());
top->SetLabel( B_TRANSLATE("Workspace"));
refresh = new BDecimalSpinner(NULL, B_TRANSLATE("Refresh display (seconds)"), NULL);
refresh = new BDecimalSpinner(NULL, B_TRANSLATE_COMMENT("Refresh display (seconds):",
"After 'seconds' follows a text field and spinner widget to set the number of seconds"), NULL);
refresh->SetStep(0.250);
refresh->SetRange(0, 60);

No commit comments for this range

You can’t perform that action at this time.