Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[sociald] Added missing Twitter translations. Contributes to JB#19139
  • Loading branch information
Antti Seppälä committed May 9, 2014
1 parent c80b3fe commit 3b29658
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rpm/sociald.spec
Expand Up @@ -305,6 +305,7 @@ Provides notification synchronisation with Twitter
%config %{_sysconfdir}/buteo/profiles/client/twitter-notifications.xml
%config %{_sysconfdir}/buteo/profiles/sync/twitter.Notifications.xml
%{_datadir}/lipstick/notificationcategories/x-nemo.social.twitter.mention.conf
%{_datadir}/translations/lipstick-jolla-home-twitter-notif_eng_en.qm

%pre twitter-notifications
rm -f /home/nemo/.cache/msyncd/sync/client/twitter-notifications.xml
Expand Down Expand Up @@ -360,6 +361,7 @@ Translation source for sociald
%{_datadir}/translations/source/sociald.ts
%{_datadir}/translations/source/lipstick-jolla-home-facebook.ts
%{_datadir}/translations/source/lipstick-jolla-home-twitter.ts
%{_datadir}/translations/source/lipstick-jolla-home-twitter-notif.ts

%package tests
Summary: Automatable tests for sociald
Expand Down
28 changes: 27 additions & 1 deletion src/twitter/twitter-notifications/twitter-notifications.pro
Expand Up @@ -24,8 +24,34 @@ OTHER_FILES += \
twitter_notifications_client_plugin_xml.files \
twitter_notifications_notification_xml.files

# translations
TWITTER_TS_FILE = $$OUT_PWD/lipstick-jolla-home-twitter-notif.ts
TWITTER_EE_QM = $$OUT_PWD/lipstick-jolla-home-twitter-notif_eng_en.qm
twitter_ts.commands += lupdate $$PWD -ts $$TWITTER_TS_FILE
twitter_ts.CONFIG += no_check_exist
twitter_ts.output = $$TWITTER_TS_FILE
twitter_ts.input = $$PWD
twitter_ts_install.files = $$TWITTER_TS_FILE
twitter_ts_install.path = /usr/share/translations/source
twitter_ts_install.CONFIG += no_check_exist

# should add -markuntranslated "-" when proper translations are in place (or for testing)
twitter_engineering_english.commands += lrelease -idbased $$TWITTER_TS_FILE -qm $$TWITTER_EE_QM
twitter_engineering_english.CONFIG += no_check_exist
twitter_engineering_english.depends = twitter_ts
twitter_engineering_english.input = $$TWITTER_TS_FILE
twitter_engineering_english.output = $$TWITTER_EE_QM
twitter_engineering_english_install.path = /usr/share/translations
twitter_engineering_english_install.files = $$TWITTER_EE_QM
twitter_engineering_english_install.CONFIG += no_check_exist

QMAKE_EXTRA_TARGETS += twitter_ts twitter_engineering_english
PRE_TARGETDEPS += twitter_ts twitter_engineering_english

INSTALLS += \
target \
twitter_notifications_sync_profile \
twitter_notifications_client_plugin_xml \
twitter_notifications_notification_xml
twitter_notifications_notification_xml \
twitter_ts_install \
twitter_engineering_english_install

0 comments on commit 3b29658

Please sign in to comment.