Bug 329105

Summary: Untranslatable strings in Dolphin - Details mode
Product: [Frameworks and Libraries] solid Reporter: André Marcelo Alvarenga <alvarenga>
Component: bluetoothAssignee: Alex Fiestas <afiestas>
Status: RESOLVED FIXED    
Severity: normal CC: lueck
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot

Description André Marcelo Alvarenga 2013-12-22 02:45:17 UTC
There are two untranslatable strings: 

"Known Device" and "Service"  (see screenshot)

Reproducible: Always
Comment 1 André Marcelo Alvarenga 2013-12-22 02:46:08 UTC
Created attachment 84223 [details]
Screenshot
Comment 2 Burkhard Lück 2013-12-22 08:44:08 UTC
Both strings are neither in l10n-kde4/templates/messages nor in extragear/base/bluedevil.

Are they from solid?
Comment 3 André Marcelo Alvarenga 2013-12-22 10:17:35 UTC
(In reply to comment #2)
> Both strings are neither in l10n-kde4/templates/messages nor in
> extragear/base/bluedevil.
> 
> Are they from solid?

I found these strings in this file:

/bluedevil/src/bluedevil-mime.xml
Comment 4 Burkhard Lück 2013-12-22 14:10:26 UTC
Sorry, overlooked this file

To extract these strings for the kde translation system this file XmlMessages.sh needs to be added to the folder src:

function get_files
{
    echo bluedevil-mime.xml
}

function po_for_file
{
    case "$1" in
       bluedevil-mime.xml)
           echo bluedevil_xml_mimetypes.po
       ;;
    esac
}

function tags_for_file
{
    case "$1" in
       bluedevil-mime.xml)
           echo comment
       ;;
    esac
}

On Scriptys next run a catalog called bluedevil_xml_mimetypes will be generated.

But that will not make the strings translated in the GUI, because translations of mimetypes in kde seems to be broken. Even the translations from xml_mimetypes in kdelibs are not used here.
Comment 5 Alex Fiestas 2014-01-19 23:15:23 UTC
Should anything in bluedevil be modified for this?
Also, to whom should be ping to get the translation of mimetypes fixed?
Comment 6 Alex Fiestas 2014-01-19 23:15:37 UTC
Should anything in bluedevil be modified for this?
Also, to whom should be ping to get the translation of mimetypes fixed?
Comment 7 Burkhard Lück 2014-05-04 11:42:03 UTC
(In reply to comment #6)
> Should anything in bluedevil be modified for this?

Yes, please apply this patch:

diff --git a/src/XmlMessages.sh b/src/XmlMessages.sh
new file mode 100755
index 0000000..05651f5
--- /dev/null
+++ b/src/XmlMessages.sh
@@ -0,0 +1,22 @@
+function get_files
+{
+    echo bluedevil-mime.xml
+}
+
+function po_for_file
+{
+    case "$1" in
+       bluedevil-mime.xml)
+           echo bluedevil_xml_mimetypes.po
+       ;;
+    esac
+}
+
+function tags_for_file
+{
+    case "$1" in
+       bluedevil-mime.xml)
+           echo comment
+       ;;
+    esac
+}

> Also, to whom should be ping to get the translation of mimetypes fixed?

This was already fixed some time ago.
When the patch is applied, Scripty will automatically detect that and extract the template catalog and merge existing translations into bluedevil-mime.xml
Comment 8 Burkhard Lück 2014-10-30 16:57:57 UTC
Git commit 32d86a4054e48a805f8a308af6c80c5bc48faef9 by Burkhard Lück.
Committed on 30/10/2014 at 16:57.
Pushed by lueck into branch 'master'.

enable bluedevil mimetypes translations

A  +22   -0    src/XmlMessages.sh

http://commits.kde.org/bluedevil/32d86a4054e48a805f8a308af6c80c5bc48faef9