mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add l10n prefix to default module name.
Approved by: will
This commit is contained in:
parent
e13477f320
commit
cd4a3ff133
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62540
@ -63,6 +63,17 @@ my $nomkdir = $opts{'m'};
|
||||
my $addlchk = $opts{'a'};
|
||||
my $nofetch = $opts{'f'};
|
||||
my $currentdir = abs_path(".");
|
||||
my %l10nprefix = (
|
||||
'chinese' => 'zh-',
|
||||
'french' => 'fr-',
|
||||
'german' => 'de-',
|
||||
'hebrew' => 'iw-',
|
||||
'japanese' => 'ja-',
|
||||
'korean' => 'ko-',
|
||||
'russian' => 'ru-',
|
||||
'ukrainian' => 'uk-',
|
||||
'vietnamese' => 'vi-',
|
||||
);
|
||||
|
||||
my $tmpdir;
|
||||
my $repo;
|
||||
@ -193,9 +204,10 @@ foreach my $thisdir (@dirs) {
|
||||
chomp(my $cvs_category = $category);
|
||||
$cvs_category =~ s/-/_/g;
|
||||
|
||||
$module = $portname;
|
||||
$module = "$l10nprefix{$category}$portname";
|
||||
|
||||
if ($interactive) {
|
||||
if (prompt("Port will be added as module $portname. OK? ")) {
|
||||
if (prompt("Port will be added as module $module. OK? ")) {
|
||||
do {
|
||||
$module = query("Preferred module name for $module? ");
|
||||
} while (prompt("Is the new module name $module OK? "));
|
||||
|
Loading…
Reference in New Issue
Block a user