forked from github/server
remove additional whitespace in some strings.
This commit is contained in:
parent
e5218781d6
commit
4154b1c3d9
|
@ -17,9 +17,7 @@ msgstr "Rostiges Kettenhemd"
|
|||
msgctxt "spellinfo"
|
||||
msgid "destroy_magic"
|
||||
msgstr ""
|
||||
"Dieser Zauber ermöglicht dem Magier, Verzauberungen "
|
||||
"einer Einheit, eines Schiffes, Gebäudes oder auch "
|
||||
"der Region aufzulösen."
|
||||
"Dieser Zauber ermöglicht dem Magier, Verzauberungen einer Einheit, eines Schiffes, Gebäudes oder auch der Region aufzulösen."
|
||||
|
||||
msgctxt "spell"
|
||||
msgid "shadowknights"
|
||||
|
@ -168,9 +166,6 @@ msgstr "TRÄNKE"
|
|||
msgid "northwest"
|
||||
msgstr "Nordwesten"
|
||||
|
||||
msgid "spinx09"
|
||||
msgstr "Das Schiff mit dem Stern im Wappen liegt neben dem der einen Mandelkern hat"
|
||||
|
||||
msgctxt "iteminfo"
|
||||
msgid "cookie"
|
||||
msgstr "Kleines trockenes Dauergebäck, m od. s; - u. -es, - u. -e"
|
||||
|
|
|
@ -1037,6 +1037,9 @@ void report_region(struct stream *out, const region * r, faction * f)
|
|||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
if (is_mourning(r, turn + 1)) {
|
||||
bytes = (int)str_strlcpy(bufp, " ", size);
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
bytes = (int)str_strlcpy(bufp, LOC(f->locale, "nr_mourning"), size);
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
|
@ -1877,6 +1880,9 @@ nr_building(struct stream *out, const region *r, const building *b, const factio
|
|||
}
|
||||
|
||||
if (!building_finished(b)) {
|
||||
bytes = (int)str_strlcpy(bufp, " ", size);
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
bytes = (int)str_strlcpy(bufp, LOC(lang, "nr_building_inprogress"), size);
|
||||
if (wrptr(&bufp, &size, bytes) != 0)
|
||||
WARN_STATIC_BUFFER();
|
||||
|
|
|
@ -111,7 +111,8 @@ size_t str_slprintf(char * dst, size_t size, const char * format, ...)
|
|||
return (size_t)result;
|
||||
}
|
||||
|
||||
void str_replace(char *buffer, size_t size, const char *tmpl, const char *var, const char *value)
|
||||
void str_replace(char *buffer, size_t size, const char *tmpl, const char *var,
|
||||
const char *value)
|
||||
{
|
||||
size_t val_len = strlen(value);
|
||||
size_t var_len = strlen(var);
|
||||
|
@ -154,8 +155,7 @@ int str_hash(const char *s)
|
|||
return key & 0x7FFFFFFF;
|
||||
}
|
||||
|
||||
const char *str_escape(const char *str, char *buffer,
|
||||
size_t len)
|
||||
const char *str_escape(const char *str, char *buffer, size_t len)
|
||||
{
|
||||
const char *handle_start = strchr(str, '\"');
|
||||
if (!handle_start) handle_start = strchr(str, '\\');
|
||||
|
|
Loading…
Reference in New Issue