[f13-branch] i18n: do not build translatable sentences from parts (#622545).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It doesn't necessarily work for all languages.
---
 loader/loader.c |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 3c97f9e..d412cbc 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1202,9 +1202,10 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
 
 /* make sure they have enough ram */
 static void checkForRam(int install_method) {
-    const char *reason_no = "";
-    const char *reason_method = " using this install method";
-    const char *reason = reason_no;
+    char *reason_none = _("You do not have enough RAM to install %s on this machine.");
+    char *reason_method = _("You do not have enough RAM to install %s on this machine using this install method.");
+
+    char* reason = reason_none;
     int needed = MIN_RAM;
 
     if (install_method == METHOD_URL) {
@@ -1214,9 +1215,7 @@ static void checkForRam(int install_method) {
     
     if (totalMemory() < needed) {
         char *buf;
-
-        checked_asprintf(&buf, _("You do not have enough RAM to install %s "
-                                 "on this machine%s."), getProductName(), reason);
+        checked_asprintf(&buf, reason, getProductName());
 
         startNewt();
         newtWinMessage(_("Error"), _("OK"), buf);
-- 
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux