Copy translations to a new directory layout.

Use common rules for build and install translations.
Added translation of .desktop files.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 83648e7c87)
r14.0.x
Slávek Banko 2 years ago
parent 4c70ef1825
commit 527afc1d70
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -47,7 +47,7 @@ endforeach( )
##### create translation templates ############## ##### create translation templates ##############
tde_l10n_create_template( tde_l10n_create_template(
CATALOG "rosegarden" CATALOG "messages/rosegarden"
SOURCES SOURCES
"src" "src"
"doc/en/tips" "doc/en/tips"
@ -55,3 +55,8 @@ tde_l10n_create_template(
ATTRIBUTES ATTRIBUTES
${_fonts_attribs} ${_fonts_attribs}
) )
tde_l10n_create_template(
CATALOG "desktop_files/rosegarden-desktops"
SOURCES data/desktop/*.desktop
)

@ -14,10 +14,7 @@ cmake_minimum_required( VERSION 3.1 )
##### general package setup ##################### ##### general package setup #####################
# The name of our project is "ROSEGARDEN". CMakeLists files in this project can project( rosegarden )
# refer to the root source directory of the project as ${ROSEGARDEN_SOURCE_DIR}
# and to the root binary directory of the project as ${ROSEGARDEN_BINARY_DIR}
PROJECT(ROSEGARDEN)
##### include essential cmake modules ########### ##### include essential cmake modules ###########
@ -112,7 +109,7 @@ set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined"
add_subdirectory( src ) add_subdirectory( src )
add_subdirectory( data ) add_subdirectory( data )
tde_conditional_add_project_docs( BUILD_DOC ) tde_conditional_add_project_docs( BUILD_DOC )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po ) tde_conditional_add_project_translations( BUILD_TRANSLATIONS )
##### write configure files ##################### ##### write configure files #####################

@ -10,15 +10,18 @@ FILE(GLOB CHORD_FILES chords/*.xml)
INSTALL(FILES ${CHORD_FILES} DESTINATION ${DATADIR}/chords) INSTALL(FILES ${CHORD_FILES} DESTINATION ${DATADIR}/chords)
# Desktop file # Desktop file
INSTALL(FILES desktop/rosegarden.desktop DESTINATION ${XDG_APPS_INSTALL_DIR}) tde_create_translated_desktop( desktop/rosegarden.desktop )
# MIME files # MIME files
SET(MIME_FILES tde_create_translated_desktop(
SOURCE
desktop/x-rosegarden21.desktop desktop/x-rosegarden21.desktop
desktop/x-rosegarden.desktop desktop/x-rosegarden.desktop
desktop/x-rosegarden-device.desktop desktop/x-rosegarden-device.desktop
desktop/x-soundfont.desktop) desktop/x-soundfont.desktop
INSTALL(FILES ${MIME_FILES} DESTINATION ${MIMEDIR})
DESTINATION ${MIMEDIR}
)
# Icons # Icons
INSTALL(FILES pixmaps/icons/cc-hi16-rosegarden.xpm DESTINATION ${ICONDIR}/locolor/16x16/apps RENAME rosegarden.xpm) INSTALL(FILES pixmaps/icons/cc-hi16-rosegarden.xpm DESTINATION ${ICONDIR}/locolor/16x16/apps RENAME rosegarden.xpm)

@ -1,14 +1,16 @@
[Desktop Entry] [Desktop Entry]
Name=Rosegarden
GenericName=MIDI and Audio Sequencer and Editor
Comment=MIDI and audio sequencer and musical notation editor
Encoding=UTF-8 Encoding=UTF-8
Type=Application Type=Application
Categories=AudioVideo;Audio;Midi;Sequencer;X-SuSE-Sequencer;X-Red-Hat-Base;
Exec=rosegarden Exec=rosegarden
MimeType=audio/x-rosegarden;audio/x-rosegarden-device;audio/midi
X-TDE-NativeMimeType=audio/x-rosegarden
Icon=rosegarden Icon=rosegarden
X-DocPath=rosegarden/index.html
Comment=MIDI and Audio Sequencer and Editor
Terminal=false Terminal=false
Name=Rosegarden Categories=AudioVideo;Audio;Midi;Sequencer;X-SuSE-Sequencer;X-Red-Hat-Base;
Name[de]=Rosegarden MimeType=audio/x-rosegarden;audio/x-rosegarden-device;audio/midi
GenericName=MIDI and Audio Sequencer and Editor X-DocPath=rosegarden/index.html
X-TDE-NativeMimeType=audio/x-rosegarden

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=Rosegarden device file Comment=Rosegarden device file
Comment[fr]=Fichier de description de peripherique Rosegarden
Hidden=false Type=MimeType
Icon=audio-midi
MimeType=audio/x-rosegarden-device MimeType=audio/x-rosegarden-device
Icon=audio-midi
Patterns=*.rgd;*.RGD Patterns=*.rgd;*.RGD
Type=MimeType Hidden=false

@ -1,9 +1,9 @@
[Desktop Entry] [Desktop Entry]
Comment=Rosegarden file Comment=Rosegarden file
Comment[fr]=Fichier Rosegarden
Hidden=false Type=MimeType
Icon=x-rosegarden
MimeType=audio/x-rosegarden MimeType=audio/x-rosegarden
Icon=x-rosegarden
Patterns=*.rg;*.RG Patterns=*.rg;*.RG
Type=MimeType Hidden=false
X-TDE-AutoEmbed=false X-TDE-AutoEmbed=false

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=Rosegarden 2.1 file Comment=Rosegarden 2.1 file
Comment[fr]=Fichier Rosegarden 2.1
Hidden=false Type=MimeType
Icon=audio-midi
MimeType=audio/x-rosegarden21 MimeType=audio/x-rosegarden21
Icon=audio-midi
Patterns=*.rose Patterns=*.rose
Type=MimeType Hidden=false

@ -1,8 +1,8 @@
[Desktop Entry] [Desktop Entry]
Comment=Soundfont Comment=Soundfont
Comment[fr]=Echantillons
Hidden=false Type=MimeType
Icon=audio-x-generic
MimeType=audio/x-soundfont MimeType=audio/x-soundfont
Icon=audio-x-generic
Patterns=*.sf2;*.SF2 Patterns=*.sf2;*.SF2
Type=MimeType Hidden=false

@ -1,17 +0,0 @@
#################################################
#
# (C) 2011 Timothy Pearson
# kb9vqf (AT) pearsoncomputing.net
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} rosegarden.po )
foreach( _po ${po_files} )
get_filename_component( _lang ${_po} PATH )
tde_create_translation( FILES ${_po} LANG ${_lang} )
endforeach( )

@ -0,0 +1,55 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-26 02:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: data/desktop/rosegarden.desktop:2
msgid "Rosegarden"
msgstr "Rosegarden"
#. GenericName
#: data/desktop/rosegarden.desktop:4
msgid "MIDI and Audio Sequencer and Editor"
msgstr ""
#. Comment
#: data/desktop/rosegarden.desktop:6
msgid "MIDI and audio sequencer and musical notation editor"
msgstr ""
#. Comment
#: data/desktop/x-rosegarden-device.desktop:2
#, fuzzy
msgid "Rosegarden device file"
msgstr "Rosegarden"
#. Comment
#: data/desktop/x-rosegarden.desktop:2
#, fuzzy
msgid "Rosegarden file"
msgstr "Rosegarden"
#. Comment
#: data/desktop/x-rosegarden21.desktop:2
#, fuzzy
msgid "Rosegarden 2.1 file"
msgstr "Rosegarden"
#. Comment
#: data/desktop/x-soundfont.desktop:2
msgid "Soundfont"
msgstr ""

@ -0,0 +1,53 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-26 02:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: data/desktop/rosegarden.desktop:2
#, fuzzy
msgid "Rosegarden"
msgstr "Fichier Rosegarden"
#. GenericName
#: data/desktop/rosegarden.desktop:4
msgid "MIDI and Audio Sequencer and Editor"
msgstr ""
#. Comment
#: data/desktop/rosegarden.desktop:6
msgid "MIDI and audio sequencer and musical notation editor"
msgstr ""
#. Comment
#: data/desktop/x-rosegarden-device.desktop:2
msgid "Rosegarden device file"
msgstr "Fichier de description de peripherique Rosegarden"
#. Comment
#: data/desktop/x-rosegarden.desktop:2
msgid "Rosegarden file"
msgstr "Fichier Rosegarden"
#. Comment
#: data/desktop/x-rosegarden21.desktop:2
msgid "Rosegarden 2.1 file"
msgstr "Fichier Rosegarden 2.1"
#. Comment
#: data/desktop/x-soundfont.desktop:2
msgid "Soundfont"
msgstr "Echantillons"

@ -0,0 +1,52 @@
# SOME DESCRIPTIVE TITLE.
# This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-26 02:56+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#. Name
#: data/desktop/rosegarden.desktop:2
msgid "Rosegarden"
msgstr ""
#. GenericName
#: data/desktop/rosegarden.desktop:4
msgid "MIDI and Audio Sequencer and Editor"
msgstr ""
#. Comment
#: data/desktop/rosegarden.desktop:6
msgid "MIDI and audio sequencer and musical notation editor"
msgstr ""
#. Comment
#: data/desktop/x-rosegarden-device.desktop:2
msgid "Rosegarden device file"
msgstr ""
#. Comment
#: data/desktop/x-rosegarden.desktop:2
msgid "Rosegarden file"
msgstr ""
#. Comment
#: data/desktop/x-rosegarden21.desktop:2
msgid "Rosegarden 2.1 file"
msgstr ""
#. Comment
#: data/desktop/x-soundfont.desktop:2
msgid "Soundfont"
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save