Print this page
6621176 $SRC/cmd/cmd-crypto/cryptoadm/*.c seem to have syntax errors in the translation notes

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
          +++ new/usr/src/cmd/cmd-crypto/cryptoadm/adm_uef.c
↓ open down ↓ 305 lines elided ↑ open up ↑
 306  306          }
 307  307  
 308  308          if (verbose) {
 309  309                  (void) printf(gettext("Number of slots: %d\n"), slot_count);
 310  310          }
 311  311  
 312  312          /* Get the mechanism list for each slot */
 313  313          for (i = 0; i < slot_count; i++) {
 314  314                  if (verbose)
 315  315                          /*
 316      -                         * TRANSLATION_NOTE:
      316 +                         * TRANSLATION_NOTE
 317  317                           * In some languages, the # symbol should be
 318  318                           * converted to "no", an "n" followed by a
 319  319                           * superscript "o"..
 320  320                           */
 321  321                          (void) printf(gettext("\nSlot #%d\n"), i+1);
 322  322  
 323  323                  if ((rng_flag != NULL) && (*rng_flag == NO_RNG)) {
 324  324                          if (check_random(prov_slots[i], prov_funcs)) {
 325  325                                  *rng_flag = HAS_RNG;
 326  326                                  rc = SUCCESS;
↓ open down ↓ 889 lines elided ↑ open up ↑
1216 1216                  return (FAILURE);
1217 1217          }
1218 1218  
1219 1219          if (display_policy(puent) != SUCCESS) {
1220 1220                  goto failed_exit;
1221 1221          }
1222 1222  
1223 1223  
1224 1224          if (puent->flag_norandom == B_TRUE)
1225 1225                  /*
1226      -                 * TRANSLATION_NOTE:
     1226 +                 * TRANSLATION_NOTE
1227 1227                   * "random" is a keyword and not to be translated.
1228 1228                   */
1229 1229                  (void) printf(gettext(" %s is disabled."), "random");
1230 1230          else {
1231 1231                  if (rng_flag == HAS_RNG)
1232 1232                          /*
1233      -                         * TRANSLATION_NOTE:
     1233 +                         * TRANSLATION_NOTE
1234 1234                           * "random" is a keyword and not to be translated.
1235 1235                           */
1236 1236                          (void) printf(gettext(" %s is enabled."), "random");
1237 1237          }
1238 1238          (void) printf("\n");
1239 1239  
1240 1240          return (SUCCESS);
1241 1241  
1242 1242  failed_exit:
1243 1243  
↓ open down ↓ 559 lines elided ↑ open up ↑
1803 1803  display_verbose_mech_header()
1804 1804  {
1805 1805          (void) printf("%28s %s", " ", HDR1);
1806 1806          (void) printf("%28s %s", " ", HDR2);
1807 1807          (void) printf("%28s %s", " ", HDR3);
1808 1808          (void) printf("%28s %s", " ", HDR4);
1809 1809          (void) printf("%28s %s", " ", HDR5);
1810 1810          (void) printf("%28s %s", " ", HDR6);
1811 1811          (void) printf("%-28.28s %s", gettext("mechanism name"), HDR7);
1812 1812          /*
1813      -         * TRANSLATION_NOTE:
     1813 +         * TRANSLATION_NOTE
1814 1814           * Strictly for appearance's sake, the first header line should be
1815 1815           * as long as the length of the translated text above.  The format
1816 1816           * lengths should all match too.
1817 1817           */
1818 1818          (void) printf("%28s ---- ---- "
1819 1819              "-  -  -  -  -  -  -  -  -  -  -  -  -  -\n",
1820 1820              gettext("----------------------------"));
1821 1821  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX