-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extension: Add translations for prefs ui and switch to makefile/bluep…
…rint * Replace the template.ui xml by template.blp, which generates template.ui on build (template.ui is still pushed to make manual install easier) * Use a makefile to run the commands instead of a single script * Add translations for the "preferences" page Signed-off-by: Woomymy <woomy@woomy.be>
- Loading branch information
Showing
14 changed files
with
430 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,3 @@ gschemas.compiled | |
|
||
# L10N | ||
*.mo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "subprojects/blueprint-compiler"] | ||
path = subprojects/blueprint-compiler | ||
url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
EXTENSION_ZIP := ideapad-controls@azzamalsharafi.gmail.com.shell-extension.zip | ||
|
||
subprojects: | ||
@git submodule update --resursive | ||
|
||
template.ui: subprojects | ||
@./subprojects/blueprint-compiler/blueprint-compiler.py compile template.blp > template.ui | ||
|
||
$(EXTENSION_ZIP): template.ui | ||
@gnome-extensions pack ./ \ | ||
--extra-source=template.ui \ | ||
--extra-source=optionsUtils.js \ | ||
--extra-source=aggregateMenu.js \ | ||
--extra-source=quickSettingsMenu.js \ | ||
--extra-source=common.js \ | ||
--extra-source=icons/ \ | ||
--extra-source=LICENSE.md \ | ||
--podir=po \ | ||
--force | ||
|
||
translations: | ||
@xgettext \ | ||
--files-from=po/POTFILES \ | ||
--output=po/ideapat-controls.pot \ | ||
--from-code=UTF-8 \ | ||
--add-comments \ | ||
--keyword=_ \ | ||
--keyword=C_:1c,2 | ||
|
||
install: $(EXTENSION_ZIP) | ||
@echo "Installing extension" | ||
gnome-extensions install --force $(EXTENSION_ZIP) | ||
@echo "Extension installed" | ||
|
||
clean: | ||
rm -f $(EXTENSION_ZIP) | ||
|
||
all: install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
template.blp | ||
aggregateMenu.js | ||
common.js | ||
extension.js | ||
optionsUtils.js | ||
prefs.js | ||
quickSettingsMenu.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.