641 Commits (0738af04ca152f59a5627c9e940aa54056d053bf)

Author SHA1 Message Date
Teo Mrnjavac 0738af04ca Reimplement onActivate in UsersViewStep for focus handling. 12 years ago
Teo Mrnjavac e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 12 years ago
demmm 86c49fbc89 Use correct entry from global_storage 12 years ago
Teo Mrnjavac 925632800b Debug output for lcLocale 12 years ago
Kevin Kofler b79618aa15 locale: Move the string processing out of the loop. 12 years ago
Teo Mrnjavac 88dfd7fa10 Fix system locale string + allow 3 letter language codes. 12 years ago
Kevin Kofler e7d0f205a4 locale: Support distributions without locale-gen.
If /etc/locale.gen (or the configured localeGenPath) does not exist,
assume that all the supported languages are already built into the
locale archive, and retrieve the list from "locale -a".

The list will then contain lines with only the locale rather than
locale + space + encoding, but that should not affect any of the rest of
the code. UTF-8 locales will still contain the string "UTF-8" (as part
of the ".UTF-8" suffix), we will not write a locale.gen file if we don't
have locale-gen, and everything else just strips away the encoding.
12 years ago
Kevin Kofler 440b38addf locale: Optimize guessLCLocale by moving function calls out of loops. 12 years ago
Kevin Kofler bcbe5103b9 locale: Don't assume 2-letter language codes.
Some languages have 3-letter codes. So instead of splitting the output
of QLocale::name, use QLocale::language and the static
QLocale::languageToString.
12 years ago
Teo Mrnjavac d2288d0961 Write lc locale setting from GlobalStorage. 12 years ago
Teo Mrnjavac 6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
12 years ago
Teo Mrnjavac 2ca58c6f91 Massive cleanup in LocalePage. Add LCLocale setting, with autodetect. 12 years ago
Teo Mrnjavac 100f08518b Build LCLocale dialog. 12 years ago
Teo Mrnjavac ddfb8dfbc5 Add relevant strings. 12 years ago
Teo Mrnjavac 6cb072acc4 New LC LOCALE picker dialog. 12 years ago
Teo Mrnjavac f72f1ae5ca README.md for branding. 12 years ago
Teo Mrnjavac da0afd6e55 Better error reporting in CreatePartitionTableJob.cpp 12 years ago
Teo Mrnjavac 0d64c849fd Unbreak build. Sorry. 12 years ago
Teo Mrnjavac 0d89ba761a Uic in GreetingPage. 12 years ago
Teo Mrnjavac 01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
12 years ago
Kevin Kofler ab4d31f1a6 bootloader: Allow overriding the bootloaderEntryName setting.
Allow setting bootloaderEntryName in bootloader.conf. If not specified
there, the setting will be taken from branding.desc.
12 years ago
Kevin Kofler 462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
12 years ago
Teo Mrnjavac fb37a0bf2f Fix focus in UsersPage. 12 years ago
Kevin Kofler 00604a8bca PythonHelper: Add support for bool.
Convert Python bool type from/to C++/QVariant bool (QVariant::Bool) in
PythonHelper::variantToPyObject and PythonHelper::variantFromPyObject.

This fixes the "override" option and any booleans in the "defaults" list
in grubcfg.conf.
12 years ago
Kevin Kofler 1499963920 grubcfg: Create /etc/default/grub if missing.
Also adds a grubcfg.conf with the following settings:

* overwrite: If set to true, always creates /etc/default/grub from
  scratch even if the file already existed. If set to false, edits the
  existing file instead. The default is "false".

* defaults: Default entries to write to /etc/default/grub if it does not
  exist yet or if we are overwriting it. Note that in addition,
  GRUB_CMDLINE_LINUX_DEFAULT and GRUB_DISTRIBUTOR will always be
  written, with automatically detected values. The default in the code
  is empty. The shipped grubcfg.conf currently reproduces the default
  settings from the Fedora installer Anaconda.

Fixes #128.
12 years ago
Kevin Kofler d5b95d79e5 grubcfg: Handle the case where expected lines are missing.
Check whether we actually had a GRUB_CMDLINE_LINUX_DEFAULT and a
GRUB_DISTRIBUTOR line, add any of them if it was missing.
12 years ago
Kevin Kofler f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
12 years ago
Kevin Kofler 5cae4e0632 partition: Don't assume that an unknown OS is Windows 7.
Don't talk about "Windows 7 programs, documents, photos, music, and
other files" when we actually have no idea what the other operating
system is or when there are multiple ones.
12 years ago
Kevin Kofler 75921ec125 bootloader/test.yaml: Define the shortProductName. 12 years ago
Kevin Kofler 48eca95a26 grubcfg: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
12 years ago
Kevin Kofler e420341ba6 bootloader: Use shortProductName.
This is particularly useful if the full product name contains
"GNU/Linux" or "Linux", because e.g. "Generic GNU/Linux GNU/Linux" does
not make sense.
12 years ago
Kevin Kofler 538b457ea8 branding: Add a shortProductName entry.
This is what the bootloader modules really want, and it was also missing
for consistency with the other branding entries.
12 years ago
Kevin Kofler cde7356f0d grubcfg: Quote the GRUB_DISTRIBUTOR value. 12 years ago
Kevin Kofler 76450b44a3 bootloader: Ensure that the file names are valid.
Change any '/' slashes to '-' dashes. Also change spaces to underscores
while we are at it.
12 years ago
Kevin Kofler 8f5b0585cb grubcfg: Get the distribution name from the branding.
Remove the redundant "distributor" setting from grubcfg.conf (and the
entire grubcfg.conf file that has no settings left for now).
12 years ago
Kevin Kofler 3cf5baadc1 bootloader: Get the distribution name from the branding.
Remove the redundant "distribution" setting from bootloader.conf.
12 years ago
Kevin Kofler 98f99fa5bf Introduce and use a Calamares::Branding::setGlobals method.
The method creates a map called "branding" in the global storage, and
inserts an entry for each of the branding strings. This makes the
branding information accessible to the Python modules.

The method is called by CalamaresApplication::initJobQueue.

This is necessary because the Branding class is in libcalamaresui, so
Python modules cannot access it directly.
12 years ago
Kevin Kofler 7478c1266b Point the lib/calamares/libcalamares.so symlink to the versioned so.
Point the lib/calamares/libcalamares.so symlink for the Python modules
directly to the versioned lib/libcalamares.so.VERSION library rather
than to the lib/libcalamares.so symlink. This allows distributions to
install the lib/libcalamares.so symlink to a development package and
only ship lib/libcalamares.so.VERSION and lib/calamares/libcalamares.so
in the runtime package. It is also marginally faster (because only one
level of symlinks has to be resolved instead of two).

(I know this works because I have been manually fixing up this symlink
in the Fedora specfile so far.)
12 years ago
Teo Mrnjavac 78de47eb8c Retranslate Users module. 12 years ago
Teo Mrnjavac ecc2d27a18 Merge pull request #151 from calamares/localecfg
adding localecfg
12 years ago
Rohan Garg 60eb9cfae6 Use the correct file to write things into 12 years ago
Teo Mrnjavac 0f9496babe Finish up retranslation in PreparePage. 12 years ago
Teo Mrnjavac 280baf7326 Move PrepareCheckWidget text out of ctor. 12 years ago
Teo Mrnjavac 9b2dfdf1ec Use Retranslator in Prepare module (partial). 12 years ago
demmm ff1383d7f5 adding localecfg
locale hardcoded to en_US until local globalstorage is available
run pep8 on bootloader main.py, plain switch from subprocess to chroot_call fails for gummiboot call
12 years ago
Kevin Kofler 7e1ec78d35 grub, bootloader: Make the grub-* and /boot/grub names configurable.
Some distributions (e.g. Fedora) use grub2-* (resp. /boot/grub2/) names.

Fixes #123.
12 years ago
Rohan Garg d9187c25c7 check_chroot_call does not actually return a error code, use chroot_call
instead.

Thanks to Kevin Kofler for pointing this out.
12 years ago
Rohan Garg 1f6feb9417 Make sure we return a message when dracut or initramfs fail 12 years ago
Teo Mrnjavac 388363c1f2 Merge pull request #148 from calamares/gummibot
make gummiboot kernel/distro agnostic
12 years ago
Teo Mrnjavac faa77d7f5e Use Retranslator in Partitioning module. 12 years ago