From kde-i18n-doc Wed Aug 15 09:28:55 2012 From: Albert Astals Cid Date: Wed, 15 Aug 2012 09:28:55 +0000 To: kde-i18n-doc Subject: Re: Translations Message-Id: <2730748.hiJnHu7oFc () xps> X-MARC-Message: https://marc.info/?l=kde-i18n-doc&m=134502323714683 El Dimecres, 15 d'agost de 2012, a les 13:11:43, Alexander Potashev va=20= escriure: > Hi Dmitry, >=20 > Yes, it seems that the C++ system tray automatically loads the catalo= g > "plasma_applet_systemtray.mo", probably guessing it from the name of > the applet's shared library (plasma_applet_systemtray.so). >=20 > For QML Plasma applets, there must be a similar automatic translation= > catalog loader. For example, the QML applet > "containments/activityscreen" from the repository > git@git.kde:plasma-mobile.git is able to load the catalog > "plasma_applet_org.kde.active.activityscreen.po" somehow. Please note= > the line "X-KDE-PluginInfo-Name=3Dorg.kde.active.activityscreen" in > "plasma-mobile/containments/activityscreen/metadata.desktop". http://techbase.kde.org/Development/Tutorials/Localization/i18n_Build_S= ystems#Declarative_plasmoids Cheers, Albert >=20 > Another basic question, do you have a compiled translation catalog > (.mo) in either "/usr/share/locale//LC_MESSAGES/" or > "/home//.kde/share/locale//LC_MESSAGES/amarok.mo"? It > matters how this .mo file is called, as I described above. >=20 > > 15.08.2012 03:19, Alexander Potashev =D0=BF=D0=B8=D1=88=D0=B5=D1=82= : > >> Hi Dmitry, > >>=20 > >> (I'm CC'ing the KDE localization mailing list.) > >>=20 > >> This happens due to missing code that would import required transl= ation > >>=20 > >> catalogs (.po files), for example: > >> KGlobal::locale()->insertCatalog( "kcm_akonadi" ); > >>=20 > >> or > >>=20 > >> static const KCatalogLoader loader( "libincidenceeditors" ); > >>=20 > >> I may sound stupid, but I can't find the sources of the QML system= tray > >> you are > >> talking about. Could you please point to them? > >=20 > > Hello, Alexander! > >=20 > > I can't find such code in current C++ system tray applet. Maybe KDE= > > translation framework loads translation corresponding to applet > > automatically? > >=20 > > Now QML system tray isn't published, because I cannot build KDE loc= ally: > >> CMake Error at > >> =E2=80=A6/build/kde/inst/share/apps/cmake/modules/FindPackageHandl= eStandardArgs.c > >> make:198 (MESSAGE): > >> Could NOT find Nepomuk (missing: SOPRANO_PLUGIN_RAPTORPARSER_FOUND= > >> SOPRANO_PLUGIN_REDLANDBACKEND_FOUND) > >> Call Stack (most recent call first): > >> =E2=80=A6/build/kde/inst/share/apps/cmake/modules/FindNepomuk.cmak= e:80 > >> (find_package_handle_standard_args) > >> services/fileindexer/indexer/CMakeLists.txt:3 (find_package) > >=20 > > So, I can't develop in kde-workspace (((. > >=20 > > Thank you!