[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 &#39;s&#39; means it is a string, and it&#39;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">&lt;<a href="mailto:aacid@kde.org" \
target="_blank">aacid@kde.org</a>&gt;</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 &#39;s&#39; 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>
&gt; Hi,<br>
&gt;<br>
&gt; kdeconnect-android template contains a string &quot;Pairing request from \
%1s&quot;<br> &gt; (pairing_request_from) which is automatically marked as \
c-formatted.<br> &gt;<br>
&gt; The string handler in Java is as follows [1]:<br>
&gt;<br>
&gt; .setContentTitle(res.getString(R.string.pairing_request_from, getName()))<br>
&gt;<br>
&gt; The question is as follows, is the &quot;s&quot; and c-formatting essential for \
this<br> &gt; string?<br>
&gt;<br>
&gt; Thanks in advance for your answers.<br>
&gt;<br>
&gt; Best regards,<br>
&gt; Yuri<br>
&gt;<br>
&gt; [1]<br>
&gt; <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>
 &gt; ory/revisions/master/entry/KdeConnect/src/main/java/org/kde/kdeconnect/Devic<br>
 &gt; 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