Commit Graph

879 Commits

Author SHA1 Message Date
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.
2014-11-16 04:19:53 +01:00
Calamares CI
39e2170b6d Automatic merge of Transifex translations 2014-11-15 08:45:23 +00:00
Kevin Kofler
6b2ccfb442 settings.conf: Move localecfg job further up.
/etc/locale.conf should always be written before generating the
initramfs, because it will be added to the initramfs. So move the step
up to where the other locale-related jobs run.

Also add commented-out placeholders for the displaymanager and dracut
jobs so people will get the ordering right.
2014-11-15 04:44:09 +01:00
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.)
2014-11-14 12:30:56 +01:00
Calamares CI
d5b1b23415 Automatic merge of Transifex translations 2014-11-14 08:45:28 +00:00
Teo Mrnjavac
78de47eb8c Retranslate Users module. 2014-11-13 17:42:02 +01:00
Teo Mrnjavac
ecc2d27a18 Merge pull request #151 from calamares/localecfg
adding localecfg
2014-11-13 17:34:07 +01:00
Rohan Garg
60eb9cfae6 Use the correct file to write things into 2014-11-13 17:08:46 +01:00
Teo Mrnjavac
0f9496babe Finish up retranslation in PreparePage. 2014-11-13 16:52:32 +01:00
Teo Mrnjavac
280baf7326 Move PrepareCheckWidget text out of ctor. 2014-11-13 16:52:32 +01:00
Teo Mrnjavac
9b2dfdf1ec Use Retranslator in Prepare module (partial). 2014-11-13 16:52:32 +01:00
demmm
faf2e2a775 Add localecfg & bootloader to settings.conf 2014-11-13 07:56:20 -05:00
Calamares CI
e5ac1a5c4f Automatic merge of Transifex translations 2014-11-13 08:45:25 +00:00
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
2014-11-12 23:10:20 -05:00
Teo Mrnjavac
df200f2210 Merge pull request #150 from kkofler/fix-issue-123
grub, bootloader: Make the grub-* and /boot/grub names configurable.
2014-11-13 01:19:03 +01:00
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.
2014-11-13 00:19:24 +01:00
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.
2014-11-12 18:54:26 +01:00
Rohan Garg
1f6feb9417 Make sure we return a message when dracut or initramfs fail 2014-11-12 17:05:06 +01:00
Teo Mrnjavac
388363c1f2 Merge pull request #148 from calamares/gummibot
make gummiboot kernel/distro agnostic
2014-11-12 12:17:32 +01:00
Calamares CI
c102ddb185 Automatic merge of Transifex translations 2014-11-12 08:45:25 +00:00
Teo Mrnjavac
faa77d7f5e Use Retranslator in Partitioning module. 2014-11-11 17:09:33 +01:00
Teo Mrnjavac
8575240b95 Capture by-val in Retranslator macro. 2014-11-11 17:05:56 +01:00
Teo Mrnjavac
688cc8f798 Use Retranslator in KeyboardPage. 2014-11-11 15:46:49 +01:00
Rohan Garg
fb92697a93 Make sure our return value is correct 2014-11-11 15:33:03 +01:00
Teo Mrnjavac
99114e04d8 Merge pull request #147 from kkofler/fix-issue-31
keyboard: Write the keyboard model and layout settings to the root mount point.
2014-11-11 15:23:07 +01:00
Teo Mrnjavac
1d9535053a Use Retranslator in GreetingPage. 2014-11-11 15:17:46 +01:00
Teo Mrnjavac
e5c3888be2 Allow multiple CALAMARES_RETRANSLATE blocks in the same widget. 2014-11-11 15:12:44 +01:00
Teo Mrnjavac
945b59748a Add RETRANSLATE macro to CalamaresUtils::Retranslator. 2014-11-11 15:12:44 +01:00
Kevin Kofler
3e9de2a05a keyboard: Allow absolute paths for the xOrgConfFileName setting.
This should ensure it works on all distributions.
2014-11-11 14:59:30 +01:00
Rohan Garg
2c8aa950a3 Update README.md 2014-11-11 14:56:34 +01:00
Kevin Kofler
86d51b4a9c keyboard: Pass settings directly, not through GlobalStorage.
Pass the settings from keyboard.conf directly to the
SetKeyboardLayoutJob rather than through GlobalStorage.
2014-11-11 14:37:05 +01:00
Kevin Kofler
2fec6e3202 keyboard: kbd-model-map: Add link to the original.
In particular, to the upstream git log for the file.
2014-11-11 14:04:21 +01:00
Kevin Kofler
bfdcf0dbc0 keyboard: Coding style fixes. 2014-11-11 13:57:08 +01:00
Teo Mrnjavac
6f3898a73d Use Retranslator in LocalePage. 2014-11-11 12:44:32 +01:00
Teo Mrnjavac
08b90e975b Add retranslator class to CalamaresUtils. 2014-11-11 12:44:32 +01:00
Calamares CI
30f029c184 Automatic merge of Transifex translations 2014-11-11 08:45:20 +00:00
demmm
53da965bb1 make gummiboot kernel/distro agnostic
add hibernate option to .conf
create a fallback entry in gummiboot menu
re-add firmware to globalstorage, simplifies this module, will be needed to add more OS to gummi
2014-11-11 00:13:15 -05:00
Kevin Kofler
4f9f7d7858 keyboard: Write the keyboard model and layout settings to the root mount point.
This is implemented as a new SetKeyboardLayout job that does the work.

Portions of the code are adapted from systemd-localed's source code,
which is under a compatible license (LGPLv2.1+, can be converted to our
GPLv3+ license). I ported it from C to to C++/Qt and made some minor
tweaks to the mapping logic (from X11 to vconsole layouts) though.

Fixes #31.

Tested on a Fedora Remix (Kannolo 21) with the default module settings
(finds the converted X11 keymaps for the virtual console) and with
convertedKeymapPath: "" (does the legacy keymap conversion as expected).
2014-11-11 04:48:03 +01:00
Teo Mrnjavac
54feddb330 Merge pull request #145 from shadeslayer/master
Add a initramfs module that updates the initramfs post install
2014-11-10 15:53:50 +01:00
Rohan Garg
2b26be4162 Fix copyright holder 2014-11-10 15:45:40 +01:00
Rohan Garg
ce96b13c0d Add a initramfs module that updates the initramfs post install 2014-11-10 15:42:31 +01:00
Teo Mrnjavac
dec452f9b5 Make LocalePage retranslatable. 2014-11-10 14:56:29 +01:00
Teo Mrnjavac
2617ef369e Use retranslate pattern in GreetingPage. 2014-11-10 14:36:18 +01:00
Teo Mrnjavac
9e9a922498 Language selector + focus fix in GreetingPage. 2014-11-10 12:40:00 +01:00
Teo Mrnjavac
78075d7412 Use the new CalamaresUtils::installTranslator. 2014-11-10 12:26:39 +01:00
Teo Mrnjavac
058be8beb2 Ensure viewpages will have focus. To choose a focused widget inside it,
a viewpage should override void focusInEvent( QFocusEvent* ).
2014-11-10 12:26:03 +01:00
Teo Mrnjavac
8b343ace4a QTranslator switching in CalamaresUtils. 2014-11-10 12:26:03 +01:00
Teo Mrnjavac
fc4ce3d23b Make progress view unfocusable. 2014-11-10 12:26:03 +01:00
Calamares CI
e0b1f91054 Automatic merge of Transifex translations 2014-11-10 08:45:21 +00:00
Calamares CI
1081cdf6af Automatic merge of Transifex translations 2014-11-09 08:45:19 +00:00