[CMD] DATE: Output 'The current date is: ' (#7117)

Make DATE command output compatible.
JIRA issue: CORE-13848
- Add STRING_DATE_NOW resource string for
  localizing "The current date is: ".
- Output by ConOutResPuts function.
This commit is contained in:
Katayama Hirofumi MZ 2024-07-10 11:53:21 +09:00 committed by GitHub
parent 07f263143e
commit 736d81938a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 27 additions and 1 deletions

View file

@ -203,9 +203,11 @@ INT cmd_date(LPTSTR param)
nDateString = i;
}
// TODO: Should prepend a "Current date is: " prompt, as done with TIME.
if (nDateString == -1)
{
ConOutResPuts(STRING_DATE_NOW);
ConOutPrintf(_T("%s\n"), GetDateString());
}
if (!bPrompt)
{

View file

@ -249,6 +249,7 @@ string1==string2 Specifies a true condition if the specified text strings\n\
EXIST filename Specifies a true condition if the specified filename exists.\n\
DEFINED variable Specifies a true condition if the specified variable is\n\
defined.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Current time is: "
STRING_MKDIR_HELP "Creates a directory.\n\n\
MKDIR [drive:]path\nMD [drive:]path"

View file

@ -243,6 +243,7 @@ Variable1==Variable2\n\
EXIST Dateiname Bedingung ist erfüllt, wenn die angegebene Datei existiert.\n\
DEFINED Variable Bedingung ist erfüllt, wenn die angegebene Datei definiert\n\
wurde."
STRING_DATE_NOW "Aktuelles Datum: "
STRING_TIME_NOW "Aktuelle Zeit: "
STRING_MKDIR_HELP "Erzeugt ein Verzeichnis.\n\n\
MKDIR [Laufwerk:]Pfad\nMD [Laufwerk:]Pfad"

View file

@ -248,6 +248,7 @@ string1==string2 Specifies a true condition if the specified text strings\n\
EXIST filename Specifies a true condition if the specified filename exists.\n\
DEFINED variable Specifies a true condition if the specified variable is\n\
defined.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Current time is: "
STRING_MKDIR_HELP "Creates a directory.\n\n\
MKDIR [drive:]path\nMD [drive:]path"

View file

@ -244,6 +244,7 @@ string1==string2 Specifies a true condition if the specified text strings\n\
EXIST filename Specifies a true condition if the specified filename exists.\n\
DEFINED variable Specifies a true condition if the specified variable is\n\
defined.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Current time is: "
STRING_MKDIR_HELP "Creates a directory.\n\n\
MKDIR [drive:]path\nMD [drive:]path"

View file

@ -247,6 +247,7 @@ comando Especifica el comando a ejecutar si se cumple la condición.\n
string1==string2 Especifica una condición verdadera si las cadenas de texto coinciden.\n\
EXIST archivo Especifica una condición verdadera si existe el archivo especificado.\n\
DEFINED variable Especifica una condición verdadera si la variable está definida.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "La hora actual es: "
STRING_MKDIR_HELP "Crea un directorio.\n\n\
MKDIR [unidad:]ruta\nMD [unidad:]ruta"

View file

@ -258,6 +258,7 @@ commande Indique la commande à lancer si la condition est vérifiée.\
chaine1==chaine2 La condition sera vraie si les deux chaines sont identiques.\n\
EXIST nomfichier La condition sera vraie si le fichier spécifié existe.\n\
DEFINED variable La condition sera vraie si la variable indiquée est définie."
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "L'heure actuelle est : "
STRING_MKDIR_HELP "Crée un répertoire.\n\n\
MKDIR [lecteur:]chemin\nMD [lecteur:]chemin"

View file

@ -239,6 +239,7 @@ parancs Ezt a parancsot hajtsa végre, ha igaz a feltétel.\n\
string1==string2 Igaz a feltétel, ha a megadott sztringek egyenlőek.\n\
EXIST fájlnév Igaz a feltétel, ha a megadott fájl létezik.\n\
DEFINED változó Igaz a feltétel, ha a megadott változó definiálva van.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Az aktuális idő: "
STRING_MKDIR_HELP "Létrehoz egy új mappát.\n\n\
MKDIR [meghajtó:]útvonal\nMD [meghajtó:]útvonal"

View file

@ -245,6 +245,7 @@ string1==string2 Menetapkan kondisi benar jika string teks yang ditetapkan\n\
sama.\n\
EXIST filename Menetapkan kondisi benar jika nama file ada.\n\
DEFINED variable Menetapkan kondisi benar jika variabel didefinisikan.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Waktu saat ini: "
STRING_MKDIR_HELP "Membuat direktori.\n\n\
MKDIR [drive:]path\nMD [drive:]path"

View file

@ -245,6 +245,7 @@ command E' il comando da eseguire se la condizione è verificata.\n\
string1==string2 E' verificata se sono uguali le due stringhe\n\
EXIST nomefile E' verificata se il file esiste.\n\
DEFINED variabile E' verificata se la variabile è definita.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "L'ora attuale è: "
STRING_MKDIR_HELP "Crea una cartella.\n\n\
MKDIR [disco:]percorso\nMD [disco:]percorso"

View file

@ -251,6 +251,7 @@ EXIST ファイル名 指定したファイル名が存在するときに条件
指定します。\n\
DEFINED 変数 指定した変数が定義されているときに条件が真になるように\n\
指定します。\n"
STRING_DATE_NOW "現在の日付は: "
STRING_TIME_NOW "現在時刻は: "
STRING_MKDIR_HELP "ディレクトリを作成します。\n\n\
MKDIR [ドライブ:]パス\n\

View file

@ -243,6 +243,7 @@ streng1==streng2 Angir et oppfylt vilkår hvis tekststrengene er like\n\
EXIST filnavn Angir et oppfylt vilkår hvis spesifisert filnavn eksisterer.\n\
DEFINED variabel Angir et oppfylt vilkår hvis spesifisert variabel er\n\
definert.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Gjeldende tid er: "
STRING_MKDIR_HELP "Oppretter en mappe.\n\n\
MKDIR [stasjon:]mappe\nMD [stasjon:]mappe"

View file

@ -251,6 +251,7 @@ komenda Komenda do wykonania, gdy warunek będzie spełniony.\n\
ciąg1==ciąg2 Zwraca PRAWDA, gdy oba ciągi znaków są identyczne\n\
EXIST plik Zwraca PRAWDA, jeśli podany plik istnieje.\n\
DEFINED zmienna Zwraca PRAWDA, jeśli podana zmienna została zdefiniowana\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Czas bieżący: "
STRING_MKDIR_HELP "Tworzy katalog.\n\n\
MKDIR [napęd:]ścieżka\nMD [napęd:]ścieżka"

View file

@ -267,6 +267,7 @@ EXIST arquivo Especifica uma condição verdadeira se o nome do arquivo\n\
especificado existir.\n\
DEFINED variável Especifica uma condição verdadeira se a variável especificada\n\
for definida.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "A hora atual é: "
STRING_MKDIR_HELP "Cria um diretório.\n\n\
MKDIR [unidade:] caminho\nMD [unidade:] caminho"

View file

@ -260,6 +260,7 @@ EXIST ficheiro Especifica uma condição verdadeira se o nome do ficheiro\n\
especificado existir.\n\
DEFINED variável Especifica uma condição verdadeira se a variável especificada\n\
for definida.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "A hora actual é: "
STRING_MKDIR_HELP "Cria um directório.\n\n\
MKDIR [unidade:] caminho\nMD [unidade:] caminho"

View file

@ -280,6 +280,7 @@ O etichetă va fi definită pe un rând întreg, începând cu două puncte (:).
fișierului specificat.\n\
DEFINED variablă Determină o condiție satisfăcută dacă «variabilă»\n\
a fost anterior definită.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Ora curentă este: "
STRING_MKDIR_HELP "Crează un director.\n\n\
MD [disc:]cale\nMKDIR [disc:]cale\n"

View file

@ -257,6 +257,7 @@ GOTO метка\n\n\
За этой командой может следовать ключевое слово ELSE,\n\
служащее для указания команды, которая должна\n\
выполняться в том случае, если условие ложно.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Текущее время: "
STRING_MKDIR_HELP "Создание каталога.\n\n\
MKDIR [диск:]путь\nMD [диск:]путь"

View file

@ -250,6 +250,7 @@ string1==string2 Specifies a true condition if the specified text strings\n\
EXIST filename Specifies a true condition if the specified filename exists.\n\
DEFINED variable Specifies a true condition if the specified variable is\n\
defined.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Aktuálny čas je: "
STRING_MKDIR_HELP "Creates a directory.\n\n\
MKDIR [drive:]path\nMD [drive:]path"

View file

@ -248,6 +248,7 @@ string1==string2 Përcakton një kusht të vërtetë nëse vargjet e specifikua
EXIST filename Përcakton një kusht të vërtetë, nëse ekziston dokumenti i specifikuar.\n\
DEFINED variable Përcakton një kusht të vërtetë nëse variabli është specifikuar\n\
dhe karakterizuar.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Koha e tanishme është: "
STRING_MKDIR_HELP "Krijon një skedë.\n\n\
MKDIR [drive:]rrugë\nMD [drive:]rrugë"

View file

@ -243,6 +243,7 @@ sträng1==sträng2 Anger ett uppfyllt villkor om textsträngarna är lika\n\
EXIST filnamn Anger ett uppfyllt villkor om angivet filnamn existerar.\n\
DEFINED variabel Anger ett uppfyllt villkor om angiven variabel är\n\
definerad.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Aktuell tid är: "
STRING_MKDIR_HELP "Skapar en mapp.\n\n\
MKDIR [enhet:]mapp\nMD [enhet:]mapp"

View file

@ -244,6 +244,7 @@ command Koşul karşılanırsa yürütülecek komutu belirtir.\n\
dizi1==dizi2 Belirtilen metin dizeleri eşleşirse doğru bir koşul belirtir\n\
EXIST dosya_adi Belirtilen dosya adı mevcutsa doğru bir koşul belirtir.\n\
DEFINED variable Belirtilen değişken tanımlanmışsa doğru bir koşul belirtir\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Şimdiki zaman: "
STRING_MKDIR_HELP "Bir dizin oluşturur.\n\n\
MKDIR [sürücü:]yol\nMD [sürücü:]yol"

View file

@ -255,6 +255,7 @@ ERRORLEVEL число Ця умова є iстинною, якщо код, що
EXIST iм'я_файлу Умова є iстинною, якщо файл з вказаним iменем iснує.\n\
DEFINED змiнна Ця умова є iстинною, якщо вказана змiнна\n\
задана.\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "Поточний час: "
STRING_MKDIR_HELP "Створення каталогу.\n\n\
MKDIR [диск:]шлях\nMD [диск:]шлях"

View file

@ -237,6 +237,7 @@ ERRORLEVEL 数字 当上一个程序返回一个大于或等于指定数字
字符串1==字符串2 当所指定的字符串相匹配时为真。\n\
EXIST 文件名 当指定的文件名存在时为真。\n\
DEFINED 变量 当指定的变量已被定义时为真。\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "当前时间是: "
STRING_MKDIR_HELP "创建一个目录。\n\n\
MKDIR [驱动器:]路径\nMD [驱动器:]路径"

View file

@ -237,6 +237,7 @@ ERRORLEVEL 數字 當上一個程式返回一個大於或等於指定數字
字元串1==字元串2 當所指定的字元串相匹配時為 TRUE。\n\
EXIST 檔案名稱 當指定的檔案名稱存在時為 TRUE。\n\
DEFINED 變數 當指定的變數已被定義時為 TRUE。\n"
STRING_DATE_NOW "The current date is: "
STRING_TIME_NOW "目前的時間是: "
STRING_MKDIR_HELP "建立一個目錄。\n\n\
MKDIR [磁碟機:]路徑\nMD [磁碟機:]路徑"

View file

@ -128,6 +128,7 @@
#define STRING_GOTO_HELP1 659
#define STRING_DATE_NOW 665
#define STRING_TIME_NOW 666
#define STRING_MKDIR_HELP 667