Commit Graph

985 Commits

Author SHA1 Message Date
Teo Mrnjavac
5fdca37db5 Focus fix in Locale page. 2014-11-26 18:52:44 +01:00
Teo Mrnjavac
472590669f Adding stuff to GlobalStorage works much better it is actually executed. 2014-11-26 18:47:46 +01:00
Teo Mrnjavac
0738af04ca Reimplement onActivate in UsersViewStep for focus handling. 2014-11-26 18:41:35 +01:00
Teo Mrnjavac
e258f0b5a9 Use onActivate instead of focusInEvent for page focus control. 2014-11-26 18:41:35 +01:00
demmm
86c49fbc89 Use correct entry from global_storage 2014-11-26 12:15:39 -05:00
Teo Mrnjavac
925632800b Debug output for lcLocale 2014-11-26 17:47:06 +01:00
Kevin Kofler
b79618aa15 locale: Move the string processing out of the loop. 2014-11-26 17:12:18 +01:00
Teo Mrnjavac
88dfd7fa10 Fix system locale string + allow 3 letter language codes. 2014-11-26 11:30:06 +01:00
Calamares CI
8c037db21a Automatic merge of Transifex translations 2014-11-26 08:45:29 +00:00
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.
2014-11-25 20:03:37 +01:00
Kevin Kofler
440b38addf locale: Optimize guessLCLocale by moving function calls out of loops. 2014-11-25 19:44:16 +01:00
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.
2014-11-25 19:41:01 +01:00
Teo Mrnjavac
d2288d0961 Write lc locale setting from GlobalStorage. 2014-11-25 17:56:38 +01:00
Teo Mrnjavac
6049267cf6 Load lcLocale value into GlobalStorage. Also allow localeGenPath setting
in locale.conf.
2014-11-25 17:43:12 +01:00
Teo Mrnjavac
2ca58c6f91 Massive cleanup in LocalePage. Add LCLocale setting, with autodetect. 2014-11-25 17:41:27 +01:00
Teo Mrnjavac
100f08518b Build LCLocale dialog. 2014-11-25 17:40:38 +01:00
Teo Mrnjavac
ddfb8dfbc5 Add relevant strings. 2014-11-25 17:40:24 +01:00
Teo Mrnjavac
6cb072acc4 New LC LOCALE picker dialog. 2014-11-25 17:40:24 +01:00
Teo Mrnjavac
f72f1ae5ca README.md for branding. 2014-11-25 17:40:24 +01:00
Calamares CI
244ca1b314 Automatic merge of Transifex translations 2014-11-25 08:45:27 +00:00
Manjaro Linux
580a142da8 Bump version
<a href="https://github.com/calamares/calamares/issues?q=milestone%3A0.17">Milestone 0.17</a> got closed.
2014-11-24 17:06:55 +01:00
Teo Mrnjavac
c17898a650 Fix CI widget 2014-11-23 12:45:20 +01:00
Teo Mrnjavac
da0afd6e55 Better error reporting in CreatePartitionTableJob.cpp 2014-11-23 11:46:45 +01:00
Calamares CI
5967917fb5 Automatic merge of Transifex translations 2014-11-23 08:45:24 +00:00
Teo Mrnjavac
0d64c849fd Unbreak build. Sorry. 2014-11-20 17:21:10 +01:00
Teo Mrnjavac
0d89ba761a Uic in GreetingPage. 2014-11-20 10:04:10 +01:00
Calamares CI
6984f6a870 Automatic merge of Transifex translations 2014-11-20 08:45:27 +00:00
Teo Mrnjavac
01c3244396 Merge pull request #155 from calamares/fix-issue-128
grubcfg: Create /etc/default/grub if missing.
2014-11-19 17:20:06 +01:00
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.
2014-11-19 17:01:02 +01:00
Kevin Kofler
462819060b branding: Add a dedicated bootloaderEntryName setting.
Use it in the bootloader and grubcfg modules instead of
shortProductName.
2014-11-19 16:50:15 +01:00
Kevin Kofler
4df754ef29 Move detect_firmware_type to the prepare module.
This avoids the duplication between the bootloader and grub modules.
2014-11-19 13:58:18 +01:00
Calamares CI
91b711e0f7 Automatic merge of Transifex translations 2014-11-19 08:45:26 +00:00
Kevin Kofler
930a49677a grub/test.yaml: Define the shortProductName. 2014-11-18 20:56:41 +01:00
Kevin Kofler
132628c175 grub: Add EFI support.
Fixes #110.

This is based on Daniel Hillenbrand's submissions, but it makes the same
adjustments already done in the bootloader module that's already merged:

* Put detect_firmware_type into the grub module itself until a better
  place is found.

* Get the distribution name from the branding configuration and use the
  file_name_sanitizer on it.

* Get the grub-install executable name from the module configuration.

It also fixes a Python syntax error in the original submission.
2014-11-18 20:51:26 +01:00
Teo Mrnjavac
869ace58b8 Remove obsolete languages from enabled list. 2014-11-18 16:31:03 +01:00
Teo Mrnjavac
1f46f24337 Remove obsolete translation files. 2014-11-18 16:28:36 +01:00
Teo Mrnjavac
53c1e1f708 Update enabled translation languages + bump version. 2014-11-18 15:57:07 +01:00
Teo Mrnjavac
fb37a0bf2f Fix focus in UsersPage. 2014-11-18 15:57:07 +01:00
Calamares CI
6ff9fd4677 Automatic merge of Transifex translations 2014-11-18 08:45:26 +00:00
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.
2014-11-18 05:34:01 +01:00
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.
2014-11-18 04:33:39 +01:00
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.
2014-11-18 03:40:47 +01:00
Kevin Kofler
f58cca1bb2 grubcfg: Don't error if /etc/default is missing.
It is created later in the function.
2014-11-18 03:38:20 +01:00
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.
2014-11-18 02:48:58 +01:00
Teo Mrnjavac
df47842fc7 Merge pull request #152 from calamares/python-branding
Give Python modules access to the branding information.
2014-11-17 13:24:19 +01:00
Calamares CI
9ae368f19d Automatic merge of Transifex translations 2014-11-17 08:45:24 +00:00
Kevin Kofler
75921ec125 bootloader/test.yaml: Define the shortProductName. 2014-11-16 15:05:00 +01:00
Kevin Kofler
c27c053482 hacking/GlobalStorage.md: Document the "branding" dictionary. 2014-11-16 15:02:32 +01:00
Calamares CI
124d4c3780 Automatic merge of Transifex translations 2014-11-16 08:45:24 +00:00
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.
2014-11-16 05:18:11 +01:00