Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
751f8e3d
Commit
751f8e3d
authored
Oct 05, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hostname: Use GetComputerNameW to get hostname.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0798a74
Hide whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
256 additions
and
20 deletions
+256
-20
ar.po
po/ar.po
+6
-0
bg.po
po/bg.po
+4
-0
ca.po
po/ca.po
+6
-0
cs.po
po/cs.po
+6
-0
da.po
po/da.po
+6
-0
de.po
po/de.po
+6
-0
el.po
po/el.po
+4
-0
en.po
po/en.po
+4
-0
en_US.po
po/en_US.po
+4
-0
eo.po
po/eo.po
+4
-0
es.po
po/es.po
+6
-0
fa.po
po/fa.po
+4
-0
fi.po
po/fi.po
+6
-0
fr.po
po/fr.po
+6
-0
he.po
po/he.po
+6
-0
hi.po
po/hi.po
+4
-0
hr.po
po/hr.po
+4
-0
hu.po
po/hu.po
+6
-0
it.po
po/it.po
+6
-0
ja.po
po/ja.po
+6
-0
ko.po
po/ko.po
+6
-0
lt.po
po/lt.po
+6
-0
ml.po
po/ml.po
+4
-0
nb_NO.po
po/nb_NO.po
+6
-0
nl.po
po/nl.po
+6
-0
or.po
po/or.po
+4
-0
pa.po
po/pa.po
+4
-0
pl.po
po/pl.po
+6
-0
pt_BR.po
po/pt_BR.po
+6
-0
pt_PT.po
po/pt_PT.po
+6
-0
rm.po
po/rm.po
+4
-0
ro.po
po/ro.po
+6
-0
ru.po
po/ru.po
+6
-0
sk.po
po/sk.po
+6
-0
sl.po
po/sl.po
+6
-0
sr_RS@cyrillic.po
po/sr_RS@cyrillic.po
+4
-0
sr_RS@latin.po
po/sr_RS@latin.po
+4
-0
sv.po
po/sv.po
+6
-0
te.po
po/te.po
+4
-0
th.po
po/th.po
+4
-0
tr.po
po/tr.po
+6
-0
uk.po
po/uk.po
+6
-0
wa.po
po/wa.po
+4
-0
wine.pot
po/wine.pot
+4
-0
zh_CN.po
po/zh_CN.po
+6
-0
zh_TW.po
po/zh_TW.po
+6
-0
Makefile.in
programs/hostname/Makefile.in
+0
-1
hostname.c
programs/hostname/hostname.c
+13
-18
hostname.h
programs/hostname/hostname.h
+2
-1
hostname.rc
programs/hostname/hostname.rc
+1
-0
No files found.
po/ar.po
View file @
751f8e3d
...
@@ -11434,6 +11434,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11434,6 +11434,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "خطأ: خيار عير سليم '%c'.\n"
msgstr "خطأ: خيار عير سليم '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "خطأ : لم يتم العثور على العملية \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/bg.po
View file @
751f8e3d
...
@@ -10923,6 +10923,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10923,6 +10923,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ca.po
View file @
751f8e3d
...
@@ -11182,6 +11182,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11182,6 +11182,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Error: L'opció '%c' no és vàlida.\n"
msgstr "Error: L'opció '%c' no és vàlida.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Error: No s'ha pogut trobar el procés \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/cs.po
View file @
751f8e3d
...
@@ -10959,6 +10959,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10959,6 +10959,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Chyba: neplatná volba „%c“.\n"
msgstr "Chyba: neplatná volba „%c“.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Chyba: Nelze nalézt proces „%1“.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/da.po
View file @
751f8e3d
...
@@ -11347,6 +11347,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11347,6 +11347,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Fejl: Ugyldig valgmulighed '%c'.\n"
msgstr "Fejl: Ugyldig valgmulighed '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Fejl: Kunne ikke finde processen «%1».\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/de.po
View file @
751f8e3d
...
@@ -11135,6 +11135,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11135,6 +11135,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Fehler: Ungültige Option '%c'.\n"
msgstr "Fehler: Ungültige Option '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Fehler: Prozess \"%1\" konnte nicht gefunden werden.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/el.po
View file @
751f8e3d
...
@@ -10726,6 +10726,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10726,6 +10726,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/en.po
View file @
751f8e3d
...
@@ -11054,6 +11054,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11054,6 +11054,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr "Error: Could not get hostname: %u.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/en_US.po
View file @
751f8e3d
...
@@ -11054,6 +11054,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11054,6 +11054,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr "Error: Could not get hostname: %u.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/eo.po
View file @
751f8e3d
...
@@ -10677,6 +10677,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10677,6 +10677,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/es.po
View file @
751f8e3d
...
@@ -11419,6 +11419,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11419,6 +11419,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Error: Opción '%c' inválida.\n"
msgstr "Error: Opción '%c' inválida.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Error: No se pudo encontrar el proceso \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/fa.po
View file @
751f8e3d
...
@@ -10711,6 +10711,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10711,6 +10711,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/fi.po
View file @
751f8e3d
...
@@ -11032,6 +11032,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11032,6 +11032,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Virhe: Virheellinen valinta '%c'.\n"
msgstr "Virhe: Virheellinen valinta '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Virhe: Prosessia \"%1\" ei löytynyt.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/fr.po
View file @
751f8e3d
...
@@ -11320,6 +11320,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11320,6 +11320,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Erreur : option « %c » invalide.\n"
msgstr "Erreur : option « %c » invalide.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Erreur : processus « %1 » introuvable.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/he.po
View file @
751f8e3d
...
@@ -11114,6 +11114,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11114,6 +11114,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
msgstr "Error: Invalid option '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Error: Could not find process \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/hi.po
View file @
751f8e3d
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/hr.po
View file @
751f8e3d
...
@@ -10905,6 +10905,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10905,6 +10905,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Greška: Neispravna opcija '%c'.\n"
msgstr "Greška: Neispravna opcija '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/hu.po
View file @
751f8e3d
...
@@ -11338,6 +11338,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11338,6 +11338,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Hiba: Érvénytelen opció '%c'.\n"
msgstr "Hiba: Érvénytelen opció '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Hiba: A \"%1\" folyamat nem található.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/it.po
View file @
751f8e3d
...
@@ -11420,6 +11420,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11420,6 +11420,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Errore: opzione non valida '%c'.\n"
msgstr "Errore: opzione non valida '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Errore: processo non trovato \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ja.po
View file @
751f8e3d
...
@@ -11041,6 +11041,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11041,6 +11041,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "エラー: 無効なオプション '%c'。\n"
msgstr "エラー: 無効なオプション '%c'。\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "エラー: プロセス(%1)が見つかりません。\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ko.po
View file @
751f8e3d
...
@@ -11232,6 +11232,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11232,6 +11232,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "오류: 올바르지 않은 옵션 '%c'.\n"
msgstr "오류: 올바르지 않은 옵션 '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "오류: 프로세스 \"%1\"를 찾을 수 없습니다.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/lt.po
View file @
751f8e3d
...
@@ -11060,6 +11060,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11060,6 +11060,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Klaida: netinkamas parametras „%c“.\n"
msgstr "Klaida: netinkamas parametras „%c“.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Klaida: nepavyko rasti proceso „%1“.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ml.po
View file @
751f8e3d
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/nb_NO.po
View file @
751f8e3d
...
@@ -11054,6 +11054,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11054,6 +11054,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Feil: \"%c\" er et ugyldig valg.\n"
msgstr "Feil: \"%c\" er et ugyldig valg.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Feil: Klarte ikke finne prosessen \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/nl.po
View file @
751f8e3d
...
@@ -11383,6 +11383,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11383,6 +11383,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Fout: Ongeldige optie '%c'.\n"
msgstr "Fout: Ongeldige optie '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Fout: Kon proces \"%1\" niet vinden.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/or.po
View file @
751f8e3d
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/pa.po
View file @
751f8e3d
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/pl.po
View file @
751f8e3d
...
@@ -11126,6 +11126,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11126,6 +11126,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Błąd: Nieprawidłowa opcja '%c'.\n"
msgstr "Błąd: Nieprawidłowa opcja '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Błąd: Nie można znaleźć procesu \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/pt_BR.po
View file @
751f8e3d
...
@@ -11251,6 +11251,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11251,6 +11251,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Erro: Opção inválida '%c'.\n"
msgstr "Erro: Opção inválida '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Erro: Não foi possível encontrar o processo \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/pt_PT.po
View file @
751f8e3d
...
@@ -11097,6 +11097,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11097,6 +11097,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Erro: opção inválida '%c'.\n"
msgstr "Erro: opção inválida '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Erro: Incapaz de encontrar o processo \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/rm.po
View file @
751f8e3d
...
@@ -10618,6 +10618,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10618,6 +10618,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ro.po
View file @
751f8e3d
...
@@ -11204,6 +11204,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11204,6 +11204,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Eroare: Opțiune nevalidă „%c”.\n"
msgstr "Eroare: Opțiune nevalidă „%c”.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Eroare: Procesul „%1” nu a putut fi găsit.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/ru.po
View file @
751f8e3d
...
@@ -11055,6 +11055,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11055,6 +11055,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Ошибка: неверная опция «%c».\n"
msgstr "Ошибка: неверная опция «%c».\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Ошибка: не удалось найти Процесс «%1».\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/sk.po
View file @
751f8e3d
...
@@ -10813,6 +10813,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10813,6 +10813,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Chyba: Nemôžno nájsť proces \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/sl.po
View file @
751f8e3d
...
@@ -11369,6 +11369,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11369,6 +11369,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Napaka: neveljavna možnost '%c'.\n"
msgstr "Napaka: neveljavna možnost '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Napaka: ni mogoče najti opravila \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/sr_RS@cyrillic.po
View file @
751f8e3d
...
@@ -11153,6 +11153,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11153,6 +11153,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Неисправна синтакса"
msgstr "Неисправна синтакса"
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/sr_RS@latin.po
View file @
751f8e3d
...
@@ -11275,6 +11275,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11275,6 +11275,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Neispravna sintaksa"
msgstr "Neispravna sintaksa"
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/sv.po
View file @
751f8e3d
...
@@ -11089,6 +11089,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11089,6 +11089,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Fel: Flaggan '%c' är ogiltig.\n"
msgstr "Fel: Flaggan '%c' är ogiltig.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Fel: Kunde inte hitta processen \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/te.po
View file @
751f8e3d
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10537,6 +10537,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/th.po
View file @
751f8e3d
...
@@ -10757,6 +10757,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10757,6 +10757,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/tr.po
View file @
751f8e3d
...
@@ -11105,6 +11105,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11105,6 +11105,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Hata: '%c' geçersiz seçenek.\n"
msgstr "Hata: '%c' geçersiz seçenek.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Hata: \"%1\" işlemi bulunamıyor.\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/uk.po
View file @
751f8e3d
...
@@ -11132,6 +11132,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11132,6 +11132,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "Помилка: невірний параметр '%c'.\n"
msgstr "Помилка: невірний параметр '%c'.\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "Помилка: Не вдалось знайти процес \"%1\".\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/wa.po
View file @
751f8e3d
...
@@ -10682,6 +10682,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10682,6 +10682,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/wine.pot
View file @
751f8e3d
...
@@ -10470,6 +10470,10 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10470,6 +10470,10 @@ msgid "Error: Invalid option '%c'.\n"
msgstr ""
msgstr ""
#: hostname.rc:32
#: hostname.rc:32
msgid "Error: Could not get hostname: %u.\n"
msgstr ""
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/zh_CN.po
View file @
751f8e3d
...
@@ -10847,6 +10847,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -10847,6 +10847,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "错误:无效的选项 '%c'。\n"
msgstr "错误:无效的选项 '%c'。\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "错误:找不到进程 \"%1\"。\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
po/zh_TW.po
View file @
751f8e3d
...
@@ -11344,6 +11344,12 @@ msgid "Error: Invalid option '%c'.\n"
...
@@ -11344,6 +11344,12 @@ msgid "Error: Invalid option '%c'.\n"
msgstr "錯誤:無效的選項 %c。\n"
msgstr "錯誤:無效的選項 %c。\n"
#: hostname.rc:32
#: hostname.rc:32
#, fuzzy
#| msgid "Error: Could not find process \"%1\".\n"
msgid "Error: Could not get hostname: %u.\n"
msgstr "錯誤:找不到行程 %1。\n"
#: hostname.rc:33
msgid ""
msgid ""
"Error: Setting the system hostname is not possible with the hostname "
"Error: Setting the system hostname is not possible with the hostname "
"utility.\n"
"utility.\n"
...
...
programs/hostname/Makefile.in
View file @
751f8e3d
MODULE
=
hostname.exe
MODULE
=
hostname.exe
APPMODE
=
-mconsole
-municode
APPMODE
=
-mconsole
-municode
EXTRALIBS
=
$(SOCKET_LIBS)
DELAYIMPORTS
=
user32
DELAYIMPORTS
=
user32
C_SRCS
=
hostname.c
C_SRCS
=
hostname.c
...
...
programs/hostname/hostname.c
View file @
751f8e3d
...
@@ -19,16 +19,7 @@
...
@@ -19,16 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
*/
#include "config.h"
#include "wine/port.h"
#include <stdarg.h>
#include <stdarg.h>
#if defined(__MINGW32__) || defined (_MSC_VER)
#include <winsock2.h>
#elif defined(HAVE_UNISTD_H)
#include <unistd.h>
#endif
#include <windef.h>
#include <windef.h>
#include <winbase.h>
#include <winbase.h>
#include <wincon.h>
#include <wincon.h>
...
@@ -109,17 +100,23 @@ static int hostname_message(int msg)
...
@@ -109,17 +100,23 @@ static int hostname_message(int msg)
return
hostname_printfW
(
formatW
,
msg_buffer
);
return
hostname_printfW
(
formatW
,
msg_buffer
);
}
}
static
void
display_computer_name
(
void
)
static
int
display_computer_name
(
void
)
{
{
static
const
WCHAR
fmtW
[]
=
{
'%'
,
's'
,
'\r'
,
'\n'
,
0
};
static
const
WCHAR
fmtW
[]
=
{
'%'
,
's'
,
'\r'
,
'\n'
,
0
};
char
nameA
[
256
];
WCHAR
name
[
MAX_COMPUTERNAME_LENGTH
+
1
];
WCHAR
nameW
[
256
];
DWORD
size
=
ARRAY_SIZE
(
name
);
BOOL
ret
;
gethostname
(
nameA
,
sizeof
(
nameA
));
ret
=
GetComputerNameW
(
name
,
&
size
);
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
nameA
,
sizeof
(
nameA
),
nameW
,
ARRAY_SIZE
(
nameW
));
if
(
!
ret
)
{
hostname_message_printfW
(
STRING_CANNOT_GET_HOSTNAME
,
GetLastError
());
return
1
;
}
hostname_printfW
(
fmtW
,
nameW
);
hostname_printfW
(
fmtW
,
name
);
return
0
;
}
}
int
wmain
(
int
argc
,
WCHAR
*
argv
[])
int
wmain
(
int
argc
,
WCHAR
*
argv
[])
...
@@ -163,7 +160,5 @@ int wmain(int argc, WCHAR *argv[])
...
@@ -163,7 +160,5 @@ int wmain(int argc, WCHAR *argv[])
}
}
}
}
display_computer_name
();
return
display_computer_name
();
return
0
;
}
}
programs/hostname/hostname.h
View file @
751f8e3d
...
@@ -23,4 +23,5 @@
...
@@ -23,4 +23,5 @@
/* Translation IDs. */
/* Translation IDs. */
#define STRING_USAGE 101
#define STRING_USAGE 101
#define STRING_INVALID_OPTION 102
#define STRING_INVALID_OPTION 102
#define STRING_CANNOT_SET_HOSTNAME 103
#define STRING_CANNOT_GET_HOSTNAME 103
#define STRING_CANNOT_SET_HOSTNAME 104
programs/hostname/hostname.rc
View file @
751f8e3d
...
@@ -28,5 +28,6 @@ STRINGTABLE
...
@@ -28,5 +28,6 @@ STRINGTABLE
{
{
STRING_USAGE, "Usage: hostname\n"
STRING_USAGE, "Usage: hostname\n"
STRING_INVALID_OPTION, "Error: Invalid option '%c'.\n"
STRING_INVALID_OPTION, "Error: Invalid option '%c'.\n"
STRING_CANNOT_GET_HOSTNAME, "Error: Could not get hostname: %u.\n"
STRING_CANNOT_SET_HOSTNAME, "Error: Setting the system hostname is not possible with the hostname utility.\n"
STRING_CANNOT_SET_HOSTNAME, "Error: Setting the system hostname is not possible with the hostname utility.\n"
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment