| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a cleanup for the po files. xgettext displays the following
messages for some Python files:
warning: 'msgid' format string with unnamed arguments cannot be properly localized:
The translator cannot reorder the arguments.
Please consider using a format string with named arguments,
and a mapping instead of a tuple for the arguments.
This patch modifies the reported format strings to use named parameters
per the warning message. We were already using these style format
strings in users.py and possibly other files. Basically when there is
more than one parameter in the format string, we should use a hash table
with named parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The i18n people have suggested using ngettext when we need to have
singular and plural forms of strings, where the count will vary as to
what we are reporting to the user.
I've made the changes they have suggested. I created a new lambda
function called P_() to use for the plural cases. P_() takes in three
parameters:
1) The singular form of the string.
2) The plural form of the string.
3) A count.
Here's an example:
....some loop runs doing stuff
bytesWritten = 47
msg = P_("Wrote %d byte.",
"Wrote %d bytes.",
bytesWritten) % (bytesWritten,)
print msg
The % substitution is correct at the end because P_() returns a single
string, so we only need the format string to account for that.
Some strings have been changed slightly to make it easier for
translations to other languages, particularly when choosing plural forms.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The VNC launch code in vnc.py needed an update to work better with
NetworkManager. When collecting the hostname and IP address, it was
assuming the first device in the netdevices list is our active NIC,
which may or may not be true.
Added getActiveNetDevs() in network.py to ask NetworkManager for a
list of all currently configured interfaces. Return a list of
device names. A list seems a bit pointless, but I'd like to have
this in place now for future improvements where we might need to
handle more than one active NIC during installation. After all,
NM can do that.
The message reported by anaconda once VNC is ready will contain the
FQDN:DISPLAY_NUMBER (IP ADDRESS), if it can. If it can't find your
IP address, it leaves that out. If it can't find your hostname, it
also leaves that out.
|
| |
|
|
|
|
|
| |
This is only "helpful" in the weird case where you try to run anaconda in
vnc mode on the livecd or similar environment, where there is no Xvnc.
|
|
|
|
|
|
| |
At least for now, I see no need for firstnetdevice in the same way
before we started using NetworkManager. Might have to come back
for specific cases, but I don't think it's necessary.
|
| |
|
| |
|
| |
|
|
|
|
| |
* po/sk.po: Typo fix.
|
|
|
|
|
|
|
| |
Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually
we'll get an AUTHORS file and will just remove author names from the
individual files. Also fixed a type in scripts/dumphdrlist.py where
Author was listed twice.
|
|
|
|
|
|
| |
Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright
year ranges and listed authors (if they were in the comment section) under
the Red Hat Author(s) section.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
continuing.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
when telling the user what to connect to. During DHCP install
scenarios, users might not know the address they are assigned (#234747)
|
| |
|
|
|
|
| |
present.
|
| |
|
|
|
|
|
| |
the command is no longer the first argument, since subprocess doesn't work
that way. Remove unneeded /proc/e820info cruft. Remove iutil.rmrf.
|
|
|
|
| |
getting his workstation back online.
|
|
|
|
|
|
|
| |
instead (#191561). Try really hard to display a valid thing the user can
connect to. Also make the logic a little clearer (to me, at least).
Now if only VNC installs worked...
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
* if we can't figure out how to start X and text mode hasn't been explicitly
asked for, prompt for if the user would prefer to do a VNC installation
|