-
Notifications
You must be signed in to change notification settings - Fork 13
vmware_tray: Add initial localization support. #71
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,12 +7,17 @@ | |||||
|
|
||||||
| #include <stdlib.h> | ||||||
|
|
||||||
| #include <Catalog.h> | ||||||
| #include <NodeMonitor.h> | ||||||
| #include <Screen.h> | ||||||
| #include <ScrollView.h> | ||||||
|
|
||||||
| #include "VMWAddOnsCleanup.h" | ||||||
|
|
||||||
|
|
||||||
| #undef B_TRANSLATION_CONTEXT | ||||||
| #define B_TRANSLATION_CONTEXT "Virtual Disk Shrinking" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will leave this as-is (unless further clarifications convince me otherwise). My reasoning being: Disk(s) shrinking is the over-arching context, as the disk(s) clean up operation cannot be performed separately; it is just an optional step before the shrinking. |
||||||
|
|
||||||
| #define _H(x) static_cast<int>((x)->Frame().Height()) | ||||||
| #define _W(x) static_cast<int>((x)->Frame().Width()) | ||||||
|
|
||||||
|
|
@@ -25,7 +30,7 @@ | |||||
|
|
||||||
| VMWAddOnsSelectWindow::VMWAddOnsSelectWindow() | ||||||
| : | ||||||
| BWindow(BRect(0, 0, 300, 1), "Clean up free space", B_TITLED_WINDOW, | ||||||
| BWindow(BRect(0, 0, 300, 1), B_TRANSLATE("Clean up free space"), B_TITLED_WINDOW, | ||||||
| B_NOT_CLOSABLE | B_NOT_ZOOMABLE | B_ASYNCHRONOUS_CONTROLS) | ||||||
| { | ||||||
| fVolumeRoster = new BVolumeRoster(); | ||||||
|
|
@@ -35,7 +40,7 @@ VMWAddOnsSelectWindow::VMWAddOnsSelectWindow() | |||||
| fDisksView = new BView(Bounds(), "disks view", B_FOLLOW_ALL, B_WILL_DRAW); | ||||||
| fDisksView->SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR)); | ||||||
|
|
||||||
| fInfoText = new BStringView(BRect(SPACING, y, 1, 1), NULL, "Volumes to cleanup :"); | ||||||
| fInfoText = new BStringView(BRect(SPACING, y, 1, 1), NULL, B_TRANSLATE("Volumes to clean up:")); | ||||||
| fInfoText->ResizeToPreferred(); | ||||||
| y += _H(fInfoText) + SPACING; | ||||||
| if (w < _W(fInfoText)) | ||||||
|
|
@@ -66,7 +71,7 @@ VMWAddOnsSelectWindow::VMWAddOnsSelectWindow() | |||||
|
|
||||||
| fDisksView->AddChild(new BScrollView(NULL, fVolumesList, B_FOLLOW_ALL_SIDES, 0, false, true)); | ||||||
|
|
||||||
| fCleanupButton = new BButton(BRect(0, 0, 0, 0), NULL, "Cleanup selection", | ||||||
| fCleanupButton = new BButton(BRect(0, 0, 0, 0), NULL, B_TRANSLATE("Clean up selection"), | ||||||
| new BMessage(CLEANUP_SELECTION), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM); | ||||||
| fCleanupButton->MakeDefault(true); | ||||||
| fCleanupButton->SetEnabled(fVolumesList->CurrentSelection() >= 0); | ||||||
|
|
@@ -77,8 +82,8 @@ VMWAddOnsSelectWindow::VMWAddOnsSelectWindow() | |||||
|
|
||||||
| fCleanupButton->SetEnabled(fVolumesList->CurrentSelection() >= 0); | ||||||
|
|
||||||
| fCancelButton = new BButton(BRect(0, 0, 0, 0), NULL, "Cancel", new BMessage(CANCEL_OPERATION), | ||||||
| B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM); | ||||||
| fCancelButton = new BButton(BRect(0, 0, 0, 0), NULL, B_TRANSLATE("Cancel"), | ||||||
| new BMessage(CANCEL_OPERATION), B_FOLLOW_RIGHT | B_FOLLOW_BOTTOM); | ||||||
| fCancelButton->ResizeToPreferred(); | ||||||
| fCancelButton->MoveTo(w - _W(fCleanupButton) - _W(fCancelButton), y + 3); | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| 1 English application/x-vnd.VinDuv.VMwareAddOns 3446789908 | ||
| Enable time synchronization Deskbar tray icon Alternatively: \"Synchronize clock\". Enable time synchronization | ||
| Shrink now… Virtual Disk Shrinking Shrink now… | ||
| Clean up selection Virtual Disk Shrinking Clean up selection | ||
| OK Virtual Disk Shrinking OK | ||
| Cancel Deskbar tray icon Cancel | ||
| Disk shrinking will operate on all auto-expanding disks attached to this virtual machine.\nFor best results it is recommended to clean up free space on these disks before starting the process.\n Virtual Disk Shrinking Disk shrinking will operate on all auto-expanding disks attached to this virtual machine.\nFor best results it is recommended to clean up free space on these disks before starting the process.\n | ||
| Quit… Deskbar tray icon Quit… | ||
| Starting cleanup process, please wait… Virtual Disk Shrinking Starting cleanup process, please wait… | ||
| Are you sure you want to quit?\nThis will stop clipboard sharing, and time synchronization (but not the mouse sharing, if it is currently enabled). Deskbar tray icon Are you sure you want to quit?\nThis will stop clipboard sharing, and time synchronization (but not the mouse sharing, if it is currently enabled). | ||
| Shrink virtual disks… Deskbar tray icon Shrink virtual disks… | ||
| Volumes to clean up: Virtual Disk Shrinking Volumes to clean up: | ||
| Shrink disks Virtual Disk Shrinking Shrink disks | ||
| An error occurred while cleaning %s (%s). This volume may be damaged. Virtual Disk Shrinking First %s is the name of the volume being cleaned. Second %s is the error message. An error occurred while cleaning %s (%s). This volume may be damaged. | ||
| Clean up disks… Virtual Disk Shrinking Clean up disks… | ||
| Stop Virtual Disk Shrinking Stop | ||
| Cancel Virtual Disk Shrinking Cancel | ||
| OK Deskbar tray icon OK | ||
| About VMware Add-ons… Deskbar tray icon About VMware Add-ons… | ||
| Progress Virtual Disk Shrinking Progress | ||
| Clean up free space Virtual Disk Shrinking Clean up free space | ||
| Cleaning up %s… Virtual Disk Shrinking %s is the name of the volume being cleaned. Cleaning up %s… | ||
| Enable mouse sharing Deskbar tray icon Enable mouse sharing | ||
| Error Virtual Disk Shrinking Error | ||
| Not running in VMware Deskbar tray icon Alternatively: \"VMware not detected\". Not running in VMware | ||
| Unable to communicate with VMware. Your VMware version may be too old. Please start the process manually if your VMware version allows it. Deskbar tray icon Unable to communicate with VMware. Your VMware version may be too old. Please start the process manually if your VMware version allows it. | ||
| The shrink operation will now be launched in VMware. This may take a long time; the virtual machine will be suspended during the process. Virtual Disk Shrinking The shrink operation will now be launched in VMware. This may take a long time; the virtual machine will be suspended during the process. | ||
| Enable clipboard sharing Deskbar tray icon Enable clipboard sharing | ||
| Quit Deskbar tray icon Quit |
Uh oh!
There was an error while loading. Please reload this page.