VirtualBox

Changeset 91718 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Oct 14, 2021 11:43:12 AM (3 years ago)
Author:
vboxsync
Message:

Main: bugref:1909: Added initial translation to Russian of API messages. Fixed errors and plurals wherever needed. Fixed type of the plural argument in the tr()

Location:
trunk/src/VBox/Main/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/QMTranslator.h

    r91392 r91718  
    4444     */
    4545    const char *translate(const char *pszContext, const char *pszSource, const char **ppszSafeSource,
    46                           const char *pszDisamb = NULL, const int iNum = -1) const RT_NOEXCEPT;
     46                          const char *pszDisamb = NULL, const size_t aNum = (~(size_t)0)) const RT_NOEXCEPT;
    4747
    4848    /**
  • trunk/src/VBox/Main/include/VBoxNls.h

    r91407 r91718  
    3434struct ctx \
    3535{\
    36    static const char *tr(const char *pszSource, const char *pszComment = NULL, const int iNum = -1) \
     36   static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = (~(size_t)0)) \
    3737   { \
    38        return VirtualBoxTranslator::translate(NULL, #ctx, pszSource, pszComment, iNum); \
     38       return VirtualBoxTranslator::translate(NULL, #ctx, pszSource, pszComment, aNum); \
    3939   } \
    4040}
     
    4343struct ctx \
    4444{\
    45    static const char *tr(const char *pszSource, const char *pszComment = NULL, const int iNum = -1) \
     45   static const char *tr(const char *pszSource, const char *pszComment = NULL, const size_t aNum = (~(size_t)0)) \
    4646   { \
    4747       NOREF(pszComment); \
    48        NOREF(iNum);       \
     48       NOREF(aNum);       \
    4949       return pszSource;  \
    5050   } \
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r91503 r91718  
    577577#ifdef VBOX_WITH_MAIN_NLS
    578578# define DECLARE_TRANSLATE_METHODS(cls) \
    579     static inline const char *tr(const char *aSourceText, \
    580                                  const char *aComment = NULL, \
    581                                  const int   aNum = -1) \
     579    static inline const char *tr(const char  *aSourceText, \
     580                                 const char  *aComment = NULL, \
     581                                 const size_t aNum = (~(size_t)0)) \
    582582    { \
    583583        return VirtualBoxTranslator::translate(NULL, #cls, aSourceText, aComment, aNum); \
     
    587587    static inline const char *tr(const char *aSourceText, \
    588588                                 const char *aComment = NULL, \
    589                                  const int   aNum = -1) \
     589                                 const size_t aNum = (~(size_t)0)) \
    590590    { \
    591591        RT_NOREF(aComment, aNum); \
  • trunk/src/VBox/Main/include/VirtualBoxTranslator.h

    r91394 r91718  
    9292     */
    9393    static const char *translate(PTRCOMPONENT aComponent,
    94                                  const char *aContext,
    95                                  const char *aSourceText,
    96                                  const char *aComment = NULL,
    97                                  const int   aNum = -1) RT_NOEXCEPT;
     94                                 const char  *aContext,
     95                                 const char  *aSourceText,
     96                                 const char  *aComment = NULL,
     97                                 const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;
    9898
    9999    /**
     
    141141
    142142    const char *i_translate(PTRCOMPONENT aComponent,
    143                             const char *aContext,
    144                             const char *aSourceText,
    145                             const char *aComment = NULL,
    146                             const int   aNum = -1) RT_NOEXCEPT;
     143                            const char   *aContext,
     144                            const char   *aSourceText,
     145                            const char   *aComment = NULL,
     146                            const size_t aNum = (~(size_t)0)) RT_NOEXCEPT;
    147147};
    148148
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette