[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: Re: kdeconnect-android string with %1s
From: Albert Vaca <albertvaka () gmail ! com>
Date: 2013-09-23 11:38:07
Message-ID: CAAQViEsrzPzVbHBh_BS9QbDPFQD7r5kVhKTkkLMS8ik8kq=i=Q () mail ! gmail ! com
[Download RAW message or body]
That 's' means it is a string, and it's required. Actually if a translator
removes it, it will make the program crash...
On Sun, Sep 22, 2013 at 5:14 PM, Albert Astals Cid <aacid@kde.org> wrote:
> AlbertV question about the Java formatting, you use for that string, is %1s
> part of the formatter (i.e. the 's' says %1 has to be a string or something
> like that) or is that s will be appended after %1 or it a typo or something
> else?
>
> Cheers,
> AlbertA
>
> El Diumenge, 22 de setembre de 2013, a les 12:24:31, Yuri Chornoivan va
> escriure:
> > Hi,
> >
> > kdeconnect-android template contains a string "Pairing request from %1s"
> > (pairing_request_from) which is automatically marked as c-formatted.
> >
> > The string handler in Java is as follows [1]:
> >
> > .setContentTitle(res.getString(R.string.pairing_request_from, getName()))
> >
> > The question is as follows, is the "s" and c-formatting essential for
> this
> > string?
> >
> > Thanks in advance for your answers.
> >
> > Best regards,
> > Yuri
> >
> > [1]
> >
> https://projects.kde.org/projects/playground/base/kdeconnect-android/reposit
> >
> ory/revisions/master/entry/KdeConnect/src/main/java/org/kde/kdeconnect/Devic
> > e.java
>
>
[Attachment #3 (text/html)]
<div dir="ltr">That 's' means it is a string, and it's required. \
Actually if a translator removes it, it will make the program crash...</div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 22, 2013 at 5:14 PM, \
Albert Astals Cid <span dir="ltr"><<a href="mailto:aacid@kde.org" \
target="_blank">aacid@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">AlbertV question about the Java formatting, you use for that \
string, is %1s<br> part of the formatter (i.e. the 's' says %1 has to be a \
string or something<br> like that) or is that s will be appended after %1 or it a \
typo or something<br> else?<br>
<br>
Cheers,<br>
AlbertA<br>
<br>
El Diumenge, 22 de setembre de 2013, a les 12:24:31, Yuri Chornoivan va<br>
escriure:<br>
> Hi,<br>
><br>
> kdeconnect-android template contains a string "Pairing request from \
%1s"<br> > (pairing_request_from) which is automatically marked as \
c-formatted.<br> ><br>
> The string handler in Java is as follows [1]:<br>
><br>
> .setContentTitle(res.getString(R.string.pairing_request_from, getName()))<br>
><br>
> The question is as follows, is the "s" and c-formatting essential for \
this<br> > string?<br>
><br>
> Thanks in advance for your answers.<br>
><br>
> Best regards,<br>
> Yuri<br>
><br>
> [1]<br>
> <a href="https://projects.kde.org/projects/playground/base/kdeconnect-android/reposit" \
target="_blank">https://projects.kde.org/projects/playground/base/kdeconnect-android/reposit</a><br>
> ory/revisions/master/entry/KdeConnect/src/main/java/org/kde/kdeconnect/Devic<br>
> e.java<br>
<br>
</blockquote></div><br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic