Commit graph

1059 commits

Author SHA1 Message Date
Allan Nordhøy bc8c5d5898
Translated using Weblate (Norwegian Bokmål)
Currently translated at 98.3% (822 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/nb_NO/
2019-01-07 23:06:59 +01:00
Viktor S 6e4182142a
Translated using Weblate (Russian)
Currently translated at 99.6% (833 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/ru/
2019-01-03 17:07:08 +01:00
Riccardo Man ad5d4cd6d4
Translated using Weblate (Italian)
Currently translated at 92.3% (772 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/it/
2018-12-24 19:09:15 +01:00
Joni 1bee317b5e
Translated using Weblate (Ukrainian)
Currently translated at 8.9% (71 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/uk/
2018-12-18 19:09:20 +01:00
Allan Nordhøy 6ad83033a6
Translated using Weblate (Norwegian Bokmål)
Currently translated at 97.4% (814 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/nb_NO/
2018-12-17 13:09:15 +01:00
Roberto Díez 3edd27241a
Translated using Weblate (Spanish)
Currently translated at 99.9% (835 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/es/
2018-12-16 00:43:08 +01:00
Pedro Albuquerque d7217a57f1
Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (837 of 837 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/pt_PT/
2018-12-13 10:09:41 +01:00
Allan Nordhøy 787da4f440
Translated using Weblate (Norwegian Bokmål)
Currently translated at 95.7% (800 of 836 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/nb_NO/
2018-12-13 10:09:02 +01:00
Curtis Gedak 4ff84d328d Merge remote-tracking branch 'weblate/develop' into develop 2018-12-11 09:46:45 -07:00
LingSamuel 6a1e9111d5 Fix a translation bug 2018-12-11 09:12:13 -07:00
LingSamuel b778ca9fc1 Revise sentence 2018-12-11 09:12:13 -07:00
LingSamuel 8ceead27a4 append compiled .qm file 2018-12-11 09:12:13 -07:00
LingSamuel 8faf527110 fix wrong translation(which crashes) 2018-12-11 09:12:13 -07:00
LingSamuel 59d6e8c086 add Chinese translation 2018-12-11 09:12:13 -07:00
LingSamuel ca397271e7 add Chinese translation 2018-12-11 09:12:13 -07:00
LingSamuel 4ded8d29e0 fix #411: translator won't work in some window, such as settings 2018-12-09 11:35:34 -07:00
LingSamuel 3d6080f3c0 fix #428: zh translation suffix doesn't match system locale; new behavior: load translation from settings first 2018-12-09 11:19:26 -07:00
Joni f72070688e
Translated using Weblate (Ukrainian)
Currently translated at 5.5% (44 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/uk/
2018-12-08 20:08:47 +01:00
LingSamuel cbf35fa373 Open/Save As/Create last accessed directory 2018-12-07 12:01:33 -07:00
LingSamuel 7bbc112d25 Add last accessed directory 2018-12-07 12:01:33 -07:00
Joni 8ce1959ee6
Added translation using Weblate (Ukrainian) 2018-12-06 22:52:06 +01:00
Sarasa Kisaragi 2d335dc0d3
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/zh_Hans/
2018-12-06 11:08:44 +01:00
Curtis Gedak 0cbf337f09 ========== manuskript-0.8.0 ========== 2018-12-05 11:39:28 -07:00
Curtis Gedak 92b0f016ba Add new language translations to the Settings window 2018-12-05 10:41:33 -07:00
Curtis Gedak 94dd422329 Update all language translation source .ts files
Update the language translation source '.ts' files with the
translatable strings in the source code with the following command:

$ make translation

This effectively runs the following command:

$ pylupdate5 -noobsolete i18n/manuskript.pro
2018-12-05 10:36:27 -07:00
Curtis Gedak e99ec4c486 Compile all language translation updates into respective .qm files
After updating the '.ts' translation source files from weblate,
compile all of the language translations into '.qm' files.

This was done with the following command:

$ make i18n

This effectively runs the 'lrelease' command on each '.ts' file.  For
example:

$ lrelease i18n/manuskript_es.ts
2018-12-05 10:34:24 -07:00
Pedro Albuquerque a1c7a6bb06 Manually update pt_PT translation because weblate is not up-to-date
The steps to manually update the translation were:

1. Download and extract manuskript_pt_PT.ts from issue #408
2. Manually add manuskript_pt_PT.ts to git develop branch

See issue #408 and pull request #410
2018-12-05 10:28:01 -07:00
Curtis Gedak 80676a8799 Add all current weblate languages to i18n/manuskript.pro
Prior to this step, the weblate language translations were merged into
the manuskript git repository with the following commands:

git remote update weblate
git checkout develop
git merge weblate/develop
2018-12-05 10:14:25 -07:00
Curtis Gedak 3a793f4869 Merge remote-tracking branch 'weblate/develop' into develop 2018-12-05 10:00:55 -07:00
Curtis Gedak 528ea130ee Remove unimplemented snowflake view mode menu entry
The menu option "View -> Mode -> Snowflake" has not been implemented.
This greyed out / disabled option has caused some confusion for users.
Remove the snowflake menu option to avoid confusion.

Closes issue #419
See also earlier issue #45
2018-11-30 09:42:42 -07:00
Curtis Gedak 07c9ca5c5d Remove support for macOS X El Capitan (10.11) in Travis CI build
The Travis CI builds for macOS X are failing because these now
timeout.  This happens because qt is being built from source instead
of being installed from a bottle.

Note that by default the Travis CI will terminate a build after 10
minutes if no output has been received.  Unfortunately building qt
from source code may take hours.

To address this issue, choose a macOS X version that has a homebrew
bottle for qt [1].

[1] https://formulae.brew.sh/formula/qt

The homebrew project currently lists having a qt bottle for:

  - Mojave (10.14)
  - High Sierra (10.13)
  - Sierra (10.12)

No bottle is listed for macOS El Capitan (10.11)

In order to support as many versions of macOS X as possible, choose
the lowest osx_image value [2] that is currently supported with a
homebrew bottle.

[2] https://docs.travis-ci.com/user/reference/osx#os-x-version

At this time osx_image value xcode8.3 is listed as supporting OS X
10.12.
2018-11-29 13:31:18 -07:00
Curtis Gedak 05c6dee033 Improve Travis CI logging for prepare linux script 2018-11-29 10:34:32 -07:00
Curtis Gedak 5ea37bd192 Remove plot resolution step key bindings Ctrl+Enter and Ctrl+Backspace
Many applications, including Manuskript in the Editor pane, use the
keyboard shortcut 'Ctrl+Backspace' to delete the previous word.
However in the Plot pane Manuskript uses 'Ctrl+Backspace' to delete a
plot resolution step.

Fix this inconsistent behaviour by removing the keyboard shortcuts for
'Ctrl+Enter' and 'Ctrl+Backspace' from the Plot pane.

Closes issue #375
2018-11-26 11:05:46 -07:00
ditokp 18a6472dfd
Translated using Weblate (Indonesian)
Currently translated at 2.1% (17 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/id/
2018-11-25 14:08:04 +01:00
Curtis Gedak 98a629454e Add support for pandoc v2 command line options
Now both pandoc v1 and v2 are supported.

Closes issue #304
2018-11-20 10:21:48 -07:00
Curtis Gedak 2b98561981 Add -B option to python3 -m pytest -vs command
Python only shows the deprecation warnings on initial run [1].

[1] https://bugs.python.org/issue30091

To work around this add the "-B" option to python invocation.
2018-11-16 12:52:56 -07:00
Curtis Gedak 60b58d9658 Fix Python 3.7 DeprecationWarning use local.format_string() messages
Fix by replacing locale.format() with locale.format_string().
2018-11-16 12:52:56 -07:00
Curtis Gedak 7f592bae41 Fix Python 3.6 DeprecationWarning invalid escape sequence messages
Fix by ensuring that regular expressions are constructed using either
raw string literals [1] or double backslashes [2].

[1] https://stackoverflow.com/questions/44325948/pandas-invalid-escape-sequence-after-update
[2] https://github.com/joblib/joblib/pull/526

Note that python only shows the deprecation warnings on initial run [3].

[3] https://bugs.python.org/issue30091

To work around this issue, remove the cached bytecode with:

    find . -name "__pycache__" -exec rm -rf {} \;

Then to prevent compiling to bytecode add the "-B" option to python:

    python3 -B -m pytest -vs
2018-11-16 12:52:56 -07:00
Curtis Gedak af53102e77 Fix pytest warning about duplicate name when running tests
When running pytest on kubuntu 16.04 the following warning was displayed:

    $ python3 -m pytest -v
    ...
    ./manuskript/load_save/version_1.py:319: \
    UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'
      zf.writestr(filename, content, compress_type=compression)

The error was tracked down using the following pytest invocation:

    $ python3 -m pytest -v -W error::UserWarning

This invocation showed 4 occurrences similar to the following warning:

    self = <zipfile.ZipFile filename='/tmp/tmpgs_sjpzr.msk' mode='w'>
    zinfo = <[AttributeError("compress_size") raised in repr()] \
    ZipInfo object at 0x7f3cc0124588>

        def _writecheck(self, zinfo):
            """Check for errors before writing a file to the archive."""
            if zinfo.filename in self.NameToInfo:
                import warnings
    >           warnings.warn('Duplicate name: %r' % zinfo.filename, \
                stacklevel=3)
    E           UserWarning: Duplicate name: 'outline/0-Folder/0-Text-3.md'

These warnings arose in the following 4 tests:

  - test_references
  - test_autoLoad
  - test_loadExportWiget
  - test_loadImportWiget

The cause of the issue is that in manuskript/tests/conftest.py, the
mainWindow::closeProject() method is called to close the project, but
the project was never loaded.  This meant the zip file setting
defaulted to True, when in fact the Acts sample project is not stored
in a single zip project file.

Fix by removing the call to MW.closeProject() before the project is
loaded.
2018-11-16 12:52:09 -07:00
Curtis Gedak 5ef8e8361b Prevent build and deploy steps for linux on Travis CI
It appears that specifing an "os:" condition is invalid for the
.travis.yml syntax.  Use a custom "condition:" statement instead.
2018-11-15 13:15:50 -07:00
Curtis Gedak 200f3544a9 Limit pyinstaller package build and deployment to osx in Travis CI 2018-11-15 12:25:49 -07:00
Curtis Gedak b0774b4149 Fix segmentation fault on import
Manuskript started to segmentation fault on import starting with Qt 5.11.

I found the following link and the Qt bug links within to be useful in
my trouble-shooting efforts.

[Qt 5.11] Various Applications Segfault in 'libfm-qt'
https://github.com/lxqt/libfm-qt/issues/164

Closes issue #402
2018-11-11 13:31:06 -07:00
Curtis Gedak 026861ee87 Fix plot importance changes if delete earlier plot and click other plots
The root cause was a mismatch between plot IDs and plot model rows.

This issue would appear when a plot was deleted such that the plot IDs
did not match the plot model row numbers and different plots had
different importance levels.  The problem would not occur if the most
recently added plot was deleted.

The plot ID / plot model row mismatch was introduced with the
following commit:

    Fixes: add plot then choose new plot does not set \
    importance slider
    3569f78928

Closes issue #404
2018-11-05 09:29:53 -07:00
Curtis Gedak 729489a77e Improve pandoc compile/export return code handling
See issue #186
2018-10-31 10:31:53 -06:00
Paweł Świątkowski b50d627333 Enable testing in Travis CI 2018-10-30 17:36:25 +01:00
saboarpad b0c9c8243f
Translated using Weblate (Hungarian)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/hu/
2018-10-29 18:24:36 +01:00
nicxxx 3cc475bf0a
Translated using Weblate (German)
Currently translated at 100.0% (798 of 798 strings)

Translation: Manuskript/Translations
Translate-URL: https://hosted.weblate.org/projects/manuskript/translations/de/
2018-10-29 18:23:44 +01:00
saboarpad 70674616dd
Added translation using Weblate (Hungarian) 2018-10-27 21:16:57 +02:00
Curtis Gedak 847fb98410 Fix Travis CI build error on OSX - fails with pip3: command not found
The Travis CI builds are failing with the following messages:

    sudo -H pip3 install --upgrade pip setuptools wheel
    sudo: pip3: command not found

    The command "if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/prepare_osx.sh; fi" failed and exited with 1 during .

It appears that homebrew recipes for Python3 and pip3 install and
invocation keep changing (see Homebrew version after 1.5).

https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x
2018-10-14 14:37:25 -06:00
RiderExMachina 41e9467267 Fix crash in Outline mode with multi-item select #355
Closes issue #355 and pull request #385
2018-10-14 11:10:46 -06:00