wcbzero / phpdesktop

Automatically exported from code.google.com/p/phpdesktop
0 stars 0 forks source link

Support localization of application error messages #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to be able to translate the error messages that may appear on 
application startup when something goes wrong. These messages are currently in 
English and hardcoded in C++ sources. We should create a "locale.json" file and 
put these strings there.

The following errors may appear on application startup that will result in 
application being terminated immediately:

1. Firewall blocked the connection to the local web server.

    FatalError(hwnd, "Error while loading the start page. "
                "An internal local server was blocked by your firewall, "
                "please check your firewall settings. "
                "Application will terminate immediately.");

2. Creating browser control failed - some internal CEF problem.

    FatalError(windowHandle_, "Could not create Browser control.\n"
                    "Exiting application.");

3. PHP binaries or PHP scripts are in a location on hard drive that contains 
unicode characters and this will cause problems as PHP doesn't support unicode 
filenames.

        message << "Application has detected that its files has been placed "
                "in a location on your hard drive that contains unicode "
                "special characters (" << unicodePaths << "). "
                "Due to some limitations this is not allowed. "
                "Application will terminate immediately.\n\n"
                "This kind of problem occurs when your Windows account "
                "name contains non-standard characters. The solution is "
                "to put application directory in a location that contains "
                "only standard set of characters. You may put it to the root "
                "C:\\ directory for example. Application must have permission "
                "to write files in that location, otherwise it is required "
                "to run it as Administrator";
        FatalError(hwnd, message.str().c_str());

4. Error while opening or parsing the settings.json file.

    a) g_applicationSettingsError = "Error while opening the Settings file. ";
    b) g_applicationSettingsError = "Error while parsing the Settings file. ";
    error.append("\nApplication will terminate immediately. ");

5. Starting Mongoose web server failed - some internal mongoose problem.

    FatalError(NULL, "Error while starting an internal local server.\n"
                   "Application will terminate immediately.");

Original issue reported on code.google.com by czarek.t...@gmail.com on 4 Feb 2014 at 10:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by czarek.t...@gmail.com on 21 Oct 2014 at 10:37