ALT Linux Bugzilla
– Attachment 12767 Details for
Bug 45589
fpc-compiler has hardwired error messages in Russian
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
fpc l10 setup script
fpc-l10n-setup.sh (text/plain), 1.21 KB, created by
Michael Shigorin
on 2023-03-20 14:17:57 MSK
(
hide
)
Description:
fpc l10 setup script
Filename:
MIME Type:
Creator:
Michael Shigorin
Created:
2023-03-20 14:17:57 MSK
Size:
1.21 KB
patch
obsolete
>#!/bin/sh ># initialize fpc's error message language from locale ># NB: English gets compiled in as default ># ># (c) 2023 Michael Shigorin <mike@altlinux.org> ># free to use on the same conditions as fpc itself > ># do not reset what's set already >cfg="/etc/fpc.cfg" >[ -w "$cfg" ] || exit 0 >! grep -q "^-Fr" "$cfg" || exit 0 > ># look at the locale... >lang="$LANG" >[ -n "$lang" ] || lang="$LC_CTYPE" >[ -n "$lang" ] || exit 0 > >msg="" ># might need update, see fpcbuild/fpcsrc/compiler/msg/ contents; ># some "matches" might be incorrect regarding the actual charset, ># please report/fix as appropriate >case "$lang" in > ca_ES*) > msg="ct"; break;; > de*.UTF-8) > msg="du"; break;; > de*) # LATIN-US DOS > msg="d"; break;; > da*) > msg="da"; break;; > en*) > msg="e"; break;; > es*) > msg="es"; break;; > fr*) # "f" has CP850 > msg="fi"; break;; > he*) # "he" has CP1255 > msg="heu"; break;; > id*) > msg="id"; break;; > it*) > msg="iu"; break;; > nl*) > msg="n"; break;; > pl*) # "pl" has CP852 > msg="pli"; break;; > pt*) # "pt" has CP850 > msg="ptu"; break;; > ru*|*RU*|be*|kk*|ky*|md*|tg*|tt*|uk*|uz*) > msg="ru"; break;; >esac > ># ...three! >[ -n "$msg" ] || exit 0 >echo "Setting up $cfg for \`$msg' error messages" >sed -r -i "s,^#(-Fr.*error$msg.msg),\1," "$cfg" ||:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 45589
: 12767 |
12768