Changeset 136 for trunk


Ignore:
Timestamp:
Oct 1, 2006, 10:49:25 AM (15 years ago)
Author:
Eugene Romanenko
Message:

macro for .lng files

Location:
trunk/Lucide
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/BIN/Lucide.lng

    r129 r136  
    6565# Lucide messages
    6666#
    67 MSGS_MAIN_WIN_TITLE=Lucide - Document Viewer
     67MSGS_MAIN_WIN_TITLE=%APPNAME% - Document Viewer
    6868MSGS_NO_SUIT_PLUG=Can't find suitable plugin for specified document!
    6969MSGS_FILE_LOAD_ERROR=File load error!
  • trunk/Lucide/BIN/Lucide_de.lng

    r123 r136  
    6262# Lucide messages
    6363#
    64 MSGS_MAIN_WIN_TITLE=Lucide - Document Viewer
     64MSGS_MAIN_WIN_TITLE=%APPNAME% - Document Viewer
    6565MSGS_NO_SUIT_PLUG=Kein passendes Plugin fr das Dokument gefunden!
    6666MSGS_FILE_LOAD_ERROR=Datei kann nicht gelesen werden!
  • trunk/Lucide/BIN/Lucide_es.lng

    r123 r136  
    6767# Lucide messages
    6868#
    69 MSGS_MAIN_WIN_TITLE=Lucide - Visor de documentos
     69MSGS_MAIN_WIN_TITLE=%APPNAME% - Visor de documentos
    7070MSGS_NO_SUIT_PLUG=­No puede encontrarse un plugin adecuado para el documento especificado!
    7171MSGS_FILE_LOAD_ERROR=­Error cargando el archivo!
  • trunk/Lucide/BIN/Lucide_fr.lng

    r91 r136  
    6464# Lucide messages
    6565#
    66 MSGS_MAIN_WIN_TITLE=Lucide - Afficheur de document
     66MSGS_MAIN_WIN_TITLE=%APPNAME% - Afficheur de document
    6767MSGS_NO_SUIT_PLUG=Composant enfichable introuvable pour le document indiqu‚ !
    6868MSGS_FILE_LOAD_ERROR=Erreur de chargement de fichier !
  • trunk/Lucide/BIN/Lucide_nl.lng

    r123 r136  
    6262# Lucide messages
    6363#
    64 MSGS_MAIN_WIN_TITLE=Lucide - Document Bekijker
     64MSGS_MAIN_WIN_TITLE=%APPNAME% - Document Bekijker
    6565MSGS_NO_SUIT_PLUG=Kan geen passende plug-in vinden voor opgegeven document!
    6666MSGS_FILE_LOAD_ERROR=Bestand inleesfout!
  • trunk/Lucide/BIN/Lucide_ru.lng

    r88 r136  
    1010# Lucide messages
    1111#
    12 MSGS_MAIN_WIN_TITLE=Lucide - ¯à®á¬®âà €®ªã¬¥­â®¢
     12MSGS_MAIN_WIN_TITLE=%APPNAME% - ¯à®á¬®âà €®ªã¬¥­â®¢
    1313MSGS_NO_SUIT_PLUG=¥ ¬®£ã ­ ©âš ¯®€å®€ïéš© ¯« £š­ €«ï ¯à®á¬®âà  í⮣® €®ªã¬¥­â !
    1414MSGS_FILE_LOAD_ERROR=Žèš¡ª  § £à㧪š ä ©« !
  • trunk/Lucide/BIN/Lucide_sv.lng

    r123 r136  
    6262# Lucide messages
    6363#
    64 MSGS_MAIN_WIN_TITLE=Lucide - Dokumentvisare
     64MSGS_MAIN_WIN_TITLE=%APPNAME% - Dokumentvisare
    6565MSGS_NO_SUIT_PLUG=Kan inte hitta n†gon l„mplig plugin f”r specificerat dokument!
    6666MSGS_FILE_LOAD_ERROR=Filladdningsfel!
  • trunk/Lucide/BIN/Lucide_zh_TW.lng

    r123 r136  
    6262# Lucide messages
    6363#
    64 MSGS_MAIN_WIN_TITLE=Lucide - €å¥óÀ˵øŸ¹
     64MSGS_MAIN_WIN_TITLE=%APPNAME% - €å¥óÀ˵øŸ¹
    6565MSGS_NO_SUIT_PLUG=µLªk§äšìŸAŠXŠ¹€å¥óªº Plugin!
    6666MSGS_FILE_LOAD_ERROR=Àɮמü€J¿ù»~!
  • trunk/Lucide/SOURCE/gui/intern.cpp

    r133 r136  
    5858static map<string,string> *langCurrent = NULL;
    5959
    60 #define NUM_ESCAPES     2
    61 static const char *escapes[NUM_ESCAPES][2] = { { "\\t", "\t" }, { "\\r", "\r" } };
     60
     61#define NUM_ESCAPES 3
     62static const char *escapes[NUM_ESCAPES][2] = {
     63    { "\\t", "\t" }, { "\\r", "\r" }, { "%APPNAME%", appName } };
    6264
    6365static string unescapeControls( const char *s )
     
    6668    for ( int i = 0; i < NUM_ESCAPES; i++ )
    6769    {
    68         int startpos = 0;
    69         int findpos = -1;
    70         while ( ( findpos = r.find( escapes[i][0], startpos ) ) != -1 ) {
    71             r.replace( findpos, 2, escapes[i][1] );
     70        string::size_type startpos = 0;
     71        string::size_type findpos = string::npos;
     72        while ( ( findpos = r.find( escapes[i][0], startpos ) ) != string::npos ) {
     73            r.replace( findpos, strlen( escapes[i][0] ), escapes[i][1] );
    7274            startpos = findpos + 1;
    7375        }
Note: See TracChangeset for help on using the changeset viewer.