<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Oct 10, 2011, at 3:04 AM, Sharad Joshi wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">I am using ppd compiler to generate PPD file.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">I have included the following directives in drv file to get the localization support:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">#po en "../English/Localizable.strings"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">#po fr "../French/Localizable.strings"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">In strings files, I have the following key value pair:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">"3101" = "text:EnglishWarning" ;   ------ In English strings File</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">"3101" = "text:FrenchWarning" ;   ------ In French strings File</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">With 'Attribute cupsIPPReason com.mycompany.3101-warning: "3101"' in my drv file, I get the following commands in PPD file:</font></div></div></blockquote><div><br></div>You don't want the colon in there - it will be interpreted as a literal character in the output (thus the duplicate colons below)</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">*cupsIPPReason com.mycompany.3101-warning:: "3101"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">*fr.cupsIPPReason com.mycompany.3101-warning:/cupsIPPReason: "text:FrenchWarning"</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">My problem is:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">In generated PPD file, for English, "3101" is used as value/message but for French, it is treated as key, and the corresponding value for "3101" key is picked up from french Localizable.strings.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">So why the same behavior is not seen for English. Why ppdc does not pick up the corresponding value for key "3101" from English Localizable.strings. But rather it treats "3101" itself as the message.</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; min-height: 11px; "><font class="Apple-style-span" size="3"><br></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 9px/normal Helvetica; "><font class="Apple-style-span" size="3">Is there any way to make English also work in the same way as French?</font></div></div></blockquote><div><br></div><div>The current (CUPS 1.5.0) ppdc should, in fact, do this.  What version of CUPS are you using?</div></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>__________________________________________________</div><div>Michael Sweet, Senior Printing System Engineer, PWG Chair<br></div></span>
</div>
<br></body></html>