From kde-devel Tue Jun 01 19:50:54 2021 From: =?UTF-8?Q?Nicol=C3=A1s_Alvarez?= Date: Tue, 01 Jun 2021 19:50:54 +0000 To: kde-devel Subject: Re: Issue with translation in Dolphin Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=162257708215764 El mar, 1 de jun. de 2021 a la(s) 03:16, Johnny Jazeix (jazeix@gmail.com) escribi=C3=B3: > > > > Le lun. 31 mai 2021 =C3=A0 21:47, Albert Astals Cid a =C3= =A9crit : >> >> El dilluns, 31 de maig de 2021, a les 21:22:52 (CEST), Johnny Jazeix va = escriure: >> > Hi, >> > >> > French translation team received a bug ( >> > https://bugs.kde.org/show_bug.cgi?id=3D437856) for a translation issue= within >> > Dolphin. >> > >> > The issue resides in this code: >> > https://invent.kde.org/system/dolphin/-/blob/master/src/kitemviews/kfi= leitemmodel.cpp#L2182-2194 >> > where we expect "'Earlier on' MMMM, yyyy" to be translated with someth= ing >> > like "'translated text' MMMM, yyyy". >> > >> > In French, we have translated this single quote to French guillemets "= =C2=AB >> > translated text =C2=BB MMMM, yyyy". >> > >> > Looking at the code, can you confirm it should be kept with single quo= tes >> > instead? If yes, does having a translator comment would help avoiding = the >> > issue? >> >> Yes, the code needs ' since it's passed to QDateTime::toString. >> >> The quotes are not shown to the user, they are used to mark a section as= "this is text, just pass it though, don't try to do MMM or yyyy substituti= on here". >> > > Thanks for confirming, I've updated it. > >> Given that the translation comment is already already very long, what wo= uld you suggest? >> > > "Keep the words between single quotes in single quotes"? I'm not sure if = French is an exception here on changing the single quotes sometimes to guil= lemets. If this is the only times we have a bug filled for it, maybe it's n= ot needed to add a new comment. Maybe this should use a comment instead of the translation context, since it's getting so long? https://api.kde.org/frameworks/ki18n/html/prg_guide.html#ctxt_extc --=20 Nicol=C3=A1s