~audio-recorder/audio-recorder/trunk

« back to all changes in this revision

Viewing changes to src/help.c

  • Committer: Osmo Antero Maatta
  • Date: 2011-01-20 12:15:54 UTC
  • Revision ID: osmoma@gmail.com-20110120121554-6rmcjy9mgcirwnn6
Beware for long error messages. Small GUI changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
static GList *help_get_language_codes() {
40
40
    GList *lst = NULL;
41
41
 
42
 
    // Load all languages this machine supports 
 
42
    // Load all languages supported by this Linux
43
43
        const gchar* const *lang_args = g_get_language_names();
44
44
    guint i = 0;
45
45
        while (lang_args && lang_args[i])
53
53
       g_strfreev(lang_args);
54
54
    */
55
55
 
56
 
    // Add also the values from the LANG variable.
 
56
    // Add also value from the LANG variable
57
57
    // $ echo $LANG
58
58
    // nb_NO.utf8
59
59
    // 
62
62
        // Like: "nb_NO.utf8"
63
63
        lst = g_list_prepend(lst, g_strdup(lang));
64
64
 
65
 
        // Remove the utf8 bit (or whatever), and "nb_NO" remains
 
65
        // Remove the utf8 part (or whatever), and "nb_NO" remains
66
66
        gchar *p = g_strrstr(lang, ".");
67
67
        if (p) {
68
68
            // This removes the "."